Skip to content

Commit eff0d81

Browse files
committed
[VPlan] Adjust original position of convertToConcreteRecipes.
Restore the original position of the call before afef545 to fix a number of crashes.
1 parent c4aa67e commit eff0d81

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
@@ -7677,7 +7677,6 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
76777677
VPlanTransforms::unrollByUF(BestVPlan, BestUF,
76787678
OrigLoop->getHeader()->getContext());
76797679
VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
7680-
VPlanTransforms::convertToConcreteRecipes(BestVPlan);
76817680

76827681
// Perform the actual loop transformation.
76837682
VPTransformState State(&TTI, BestVF, BestUF, LI, DT, ILV.Builder, &ILV,
@@ -7741,6 +7740,7 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
77417740
BestVPlan.prepareToExecute(ILV.getTripCount(),
77427741
ILV.getOrCreateVectorTripCount(nullptr),
77437742
CanonicalIVStartValue, State);
7743+
VPlanTransforms::convertToConcreteRecipes(BestVPlan);
77447744

77457745
BestVPlan.execute(&State);
77467746

0 commit comments

Comments
 (0)