[LV] Adjust comment to say the induction is created in header.
authorFlorian Hahn <flo@fhahn.com>
Wed, 22 Dec 2021 11:56:40 +0000 (11:56 +0000)
committerFlorian Hahn <flo@fhahn.com>
Wed, 22 Dec 2021 11:56:40 +0000 (11:56 +0000)
Follow-up suggested post-commit for 1a54889f48fa.

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

index ec95cd6..5dafc56 100644 (file)
@@ -8448,7 +8448,7 @@ VPValue *VPRecipeBuilder::createBlockInMask(BasicBlock *BB, VPlanPtr &Plan) {
 
     // Introduce the early-exit compare IV <= BTC to form header block mask.
     // This is used instead of IV < TC because TC may wrap, unlike BTC.
-    // Start by constructing the desired canonical IV.
+    // Start by constructing the desired canonical IV in the header block.
     VPValue *IV = nullptr;
     if (Legal->getPrimaryInduction())
       IV = Plan->getOrAddVPValue(Legal->getPrimaryInduction());