[llvm] 772071b - [LV] Improve code using VPIRPhi::getIRPhi (NFC) (#162270)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 8 01:19:51 PDT 2025


Author: Ramkumar Ramachandra
Date: 2025-10-08T09:19:48+01:00
New Revision: 772071bb75772ddff43c9525f2b66077fd873c04

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

LOG: [LV] Improve code using VPIRPhi::getIRPhi (NFC) (#162270)

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 cee08ef94aeb5..0b7963b98e7a4 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7282,8 +7282,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
     if (!Exit->hasPredecessors())
       continue;
     for (VPRecipeBase &PhiR : Exit->phis())
-      SE.forgetLcssaPhiWithNewPredecessor(
-          OrigLoop, cast<PHINode>(&cast<VPIRPhi>(PhiR).getInstruction()));
+      SE.forgetLcssaPhiWithNewPredecessor(OrigLoop,
+                                          &cast<VPIRPhi>(PhiR).getIRPhi());
   }
   // Forget the original loop and block dispositions.
   SE.forgetLoop(OrigLoop);


        


More information about the llvm-commits mailing list