[llvm] 32cb8f5 - [VPlan] Generalize variable names for ICmpULE operands (NFC)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 07:47:22 PDT 2023


Author: Florian Hahn
Date: 2023-08-28T15:47:04+01:00
New Revision: 32cb8f519ebbce0582f92177e991adb04155b51c

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

LOG: [VPlan] Generalize variable names for ICmpULE operands (NFC)

ICmp codegen for VPInstructionD will be extended for other predicates,
and the operands could be any values (not just IV and TC as implied by
the names). Suggested cleanup from 150398.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index da85e9369aec31..7964d603b168a3 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -272,9 +272,9 @@ Value *VPInstruction::generateInstruction(VPTransformState &State,
     return Builder.CreateNot(A, Name);
   }
   case VPInstruction::ICmpULE: {
-    Value *IV = State.get(getOperand(0), Part);
-    Value *TC = State.get(getOperand(1), Part);
-    return Builder.CreateICmpULE(IV, TC, Name);
+    Value *A = State.get(getOperand(0), Part);
+    Value *B = State.get(getOperand(1), Part);
+    return Builder.CreateICmpULE(A, B, Name);
   }
   case Instruction::Select: {
     Value *Cond = State.get(getOperand(0), Part);


        


More information about the llvm-commits mailing list