Skip to content

Commit d584fc1

Browse files
committed
Update after merge. Using runPass::().
1 parent 2ee6e76 commit d584fc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9429,14 +9429,15 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
94299429
// Adjust the recipes for any inloop reductions.
94309430
adjustRecipesForReductions(Plan, RecipeBuilder, Range.Start);
94319431

9432-
// Transform recipes to abstract recipes if it is beneficial and clamp
9433-
// the range.
9432+
// Transform recipes to abstract recipes if it is leagal and beneficial and
9433+
// clamp the range for better cost estimation.
94349434
// TODO: Enable following transform when the EVL-version of extended-reduction
94359435
// and mulacc-reduction are implemented.
94369436
if (!CM.foldTailWithEVL()) {
94379437
VPCostContext CostCtx(CM.TTI, *CM.TLI, Legal->getWidestInductionType(), CM,
94389438
CM.CostKind);
9439-
VPlanTransforms::convertToAbstractRecipes(*Plan, CostCtx, Range);
9439+
VPlanTransforms::runPass(VPlanTransforms::convertToAbstractRecipes, *Plan,
9440+
CostCtx, Range);
94409441
}
94419442

94429443
// Interleave memory: for each Interleave Group we marked earlier as relevant

0 commit comments

Comments
 (0)