Skip to content

Commit 654cd94

Browse files
committed
[VPlan] Unconditionally run optimizeForVFAndUF.
Now that the VPlan for the main vector loop gets cloned in the epilogue vectorization code path, there optimizeForVFAndUF can be applied unconditionally.
1 parent 6ee845d commit 654cd94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7499,9 +7499,9 @@ LoopVectorizationPlanner::executePlan(
74997499
assert(
75007500
(IsEpilogueVectorization || !ExpandedSCEVs) &&
75017501
"expanded SCEVs to reuse can only be used during epilogue vectorization");
7502+
(void)IsEpilogueVectorization;
75027503

7503-
if (!IsEpilogueVectorization)
7504-
VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
7504+
VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
75057505

75067506
LLVM_DEBUG(dbgs() << "Executing best plan with VF=" << BestVF
75077507
<< ", UF=" << BestUF << '\n');

0 commit comments

Comments
 (0)