[llvm] ab7281d - [VPlan] Update naming in VPInterleaveRecipe constructor. nfc (#152472)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 05:17:14 PDT 2025


Author: Mel Chen
Date: 2025-08-08T20:17:10+08:00
New Revision: ab7281d8969152a2cb0f302fe645e99e58e6d281

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

LOG: [VPlan] Update naming in VPInterleaveRecipe constructor. nfc (#152472)

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlan.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index b7f5e3d94528e..6f0983510d0a1 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2408,11 +2408,11 @@ class LLVM_ABI_FOR_TEST VPInterleaveRecipe : public VPRecipeBase {
     // TODO: extend the masked interleaved-group support to reversed access.
     assert((!Mask || !IG->isReverse()) &&
            "Reversed masked interleave-group not supported.");
-    for (unsigned i = 0; i < IG->getFactor(); ++i)
-      if (Instruction *I = IG->getMember(i)) {
-        if (I->getType()->isVoidTy())
+    for (unsigned I = 0; I < IG->getFactor(); ++I)
+      if (Instruction *Inst = IG->getMember(I)) {
+        if (Inst->getType()->isVoidTy())
           continue;
-        new VPValue(I, this);
+        new VPValue(Inst, this);
       }
 
     for (auto *SV : StoredValues)


        


More information about the llvm-commits mailing list