Skip to content

Commit 438067d

Browse files
committed
!fixup address comments, thanks
1 parent 4fe6ecb commit 438067d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10129,7 +10129,7 @@ preparePlanForEpilogueVectorLoop(VPlan &Plan, Loop *L,
1012910129
} else {
1013010130
// Retrieve the induction resume values for wide inductions from
1013110131
// their original phi nodes in the scalar loop.
10132-
PHINode *IndPhi = dyn_cast<VPWidenInductionRecipe>(&R)->getPHINode();
10132+
PHINode *IndPhi = cast<VPWidenInductionRecipe>(&R)->getPHINode();
1013310133
// Hook up to the PHINode generated by a ResumePhi recipe of main
1013410134
// loop VPlan, which feeds the scalar loop.
1013510135
ResumeV = IndPhi->getIncomingValueForBlock(L->getLoopPreheader());

0 commit comments

Comments
 (0)