Skip to content

Commit 8b02f31

Browse files
committed
[VPlan] Consistently use VF.Width to getting plan for main loop VF (NFC)
Cleanup to make things consistent in preparation for #98821.
1 parent 88549cf commit 8b02f31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10027,8 +10027,9 @@ bool LoopVectorizePass::processLoop(Loop *L) {
1002710027
EpilogueVectorizerMainLoop MainILV(L, PSE, LI, DT, TLI, TTI, AC, ORE,
1002810028
EPI, &LVL, &CM, BFI, PSI, Checks);
1002910029

10030+
assert(EPI.MainLoopVF == VF.Width && "VFs must match");
1003010031
std::unique_ptr<VPlan> BestMainPlan(
10031-
LVP.getBestPlanFor(EPI.MainLoopVF).duplicate());
10032+
LVP.getBestPlanFor(VF.Width).duplicate());
1003210033
const auto &[ExpandedSCEVs, ReductionResumeValues] = LVP.executePlan(
1003310034
EPI.MainLoopVF, EPI.MainLoopUF, *BestMainPlan, MainILV, DT, true);
1003410035
++LoopsVectorized;

0 commit comments

Comments
 (0)