File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -7553,7 +7553,9 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
7553
7553
CM.CostKind );
7554
7554
precomputeCosts (BestPlan, BestFactor.Width , CostCtx);
7555
7555
assert ((BestFactor.Width == LegacyVF.Width ||
7556
- BestPlan.hasRegionWithEarlyExit () ||
7556
+ (BestPlan.getVectorLoopRegion () &&
7557
+ BestPlan.getVectorLoopRegion ()->getSingleSuccessor () !=
7558
+ BestPlan.getMiddleBlock ()) ||
7557
7559
planContainsAdditionalSimplifications (getPlanFor (BestFactor.Width ),
7558
7560
CostCtx, OrigLoop) ||
7559
7561
planContainsAdditionalSimplifications (getPlanFor (LegacyVF.Width ),
Original file line number Diff line number Diff line change @@ -3623,15 +3623,6 @@ class VPlan {
3623
3623
// / of VPBlockShallowTraversalWrapper.
3624
3624
auto getExitBlocks ();
3625
3625
3626
- // / Returns true if the plan has a region containing an early exit, i.e. the
3627
- // / loop exits due to a condition other than testing the canonical induction
3628
- // / variable against the trip count.
3629
- bool hasRegionWithEarlyExit () {
3630
- auto *VectorRegion = getVectorLoopRegion ();
3631
- return VectorRegion &&
3632
- VectorRegion->getSingleSuccessor () != getMiddleBlock ();
3633
- }
3634
-
3635
3626
// / Returns true if \p VPBB is an exit block.
3636
3627
bool isExitBlock (VPBlockBase *VPBB);
3637
3628
You can’t perform that action at this time.
0 commit comments