Skip to content

Commit 8767d55

Browse files
committed
[VPlan] Consistently use VPlanTransforms::runPass if possible (NFC).
Update some more transforms to use ::runPass.
1 parent 3b62a33 commit 8767d55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7788,12 +7788,12 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
77887788
"Trying to execute plan with unsupported VF");
77897789
assert(BestVPlan.hasUF(BestUF) &&
77907790
"Trying to execute plan with unsupported UF");
7791-
VPlanTransforms::materializeStepVectors(BestVPlan);
7791+
VPlanTransforms::runPass(VPlanTransforms::materializeStepVectors, BestVPlan);
77927792
// TODO: Move to VPlan transform stage once the transition to the VPlan-based
77937793
// cost model is complete for better cost estimates.
77947794
VPlanTransforms::runPass(VPlanTransforms::unrollByUF, BestVPlan, BestUF,
77957795
OrigLoop->getHeader()->getContext());
7796-
VPlanTransforms::materializeBroadcasts(BestVPlan);
7796+
VPlanTransforms::runPass(VPlanTransforms::materializeBroadcasts, BestVPlan);
77977797
VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
77987798
VPlanTransforms::simplifyRecipes(BestVPlan, *Legal->getWidestInductionType());
77997799
VPlanTransforms::narrowInterleaveGroups(
@@ -9100,7 +9100,7 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
91009100
if (!HasScalarVF)
91019101
VPlanTransforms::runPass(VPlanTransforms::truncateToMinimalBitwidths,
91029102
*Plan, CM.getMinimalBitwidths());
9103-
VPlanTransforms::optimize(*Plan);
9103+
VPlanTransforms::runPass(VPlanTransforms::optimize, *Plan);
91049104
// TODO: try to put it close to addActiveLaneMask().
91059105
// Discard the plan if it is not EVL-compatible
91069106
if (CM.foldTailWithEVL() && !HasScalarVF &&

0 commit comments

Comments
 (0)