Skip to content

Commit 5aa8b6a

Browse files
artagnonsvkeerthy
authored andcommitted
[LV] Improve code using VPIRPhi::getIRPhi (NFC) (#162270)
1 parent 36dead5 commit 5aa8b6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7282,8 +7282,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
72827282
if (!Exit->hasPredecessors())
72837283
continue;
72847284
for (VPRecipeBase &PhiR : Exit->phis())
7285-
SE.forgetLcssaPhiWithNewPredecessor(
7286-
OrigLoop, cast<PHINode>(&cast<VPIRPhi>(PhiR).getInstruction()));
7285+
SE.forgetLcssaPhiWithNewPredecessor(OrigLoop,
7286+
&cast<VPIRPhi>(PhiR).getIRPhi());
72877287
}
72887288
// Forget the original loop and block dispositions.
72897289
SE.forgetLoop(OrigLoop);

0 commit comments

Comments
 (0)