[llvm] [VPlan] Fix the code format for VPInterleaveRecipe. nfc (PR #152472)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 03:00:51 PDT 2025


https://github.com/Mel-Chen created https://github.com/llvm/llvm-project/pull/152472

None

>From 042ebb1f8434b76510d2c436ecf4fdc64ffde7b4 Mon Sep 17 00:00:00 2001
From: Mel Chen <mel.chen at sifive.com>
Date: Thu, 7 Aug 2025 02:57:50 -0700
Subject: [PATCH] nfc, fix format

---
 llvm/lib/Transforms/Vectorize/VPlan.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index c42cdd5365108..1cc2cab60d816 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