[llvm] c83ef40 - [LV] Adjust comment to say the induction is created in header.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 22 03:57:52 PST 2021


Author: Florian Hahn
Date: 2021-12-22T11:56:40Z
New Revision: c83ef407dfa1b6b96c3068512edb479e2b33fc7f

URL: https://github.com/llvm/llvm-project/commit/c83ef407dfa1b6b96c3068512edb479e2b33fc7f
DIFF: https://github.com/llvm/llvm-project/commit/c83ef407dfa1b6b96c3068512edb479e2b33fc7f.diff

LOG: [LV] Adjust comment to say the induction is created in header.

Follow-up suggested post-commit for 1a54889f48fa.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index ec95cd62ed268..5dafc561baf43 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -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());


        


More information about the llvm-commits mailing list