Skip to content

Commit c53eca6

Browse files
committed
!fixup remove left over canVectorizeEarlyExit
1 parent 7b98d34 commit c53eca6

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,6 @@ class LoopVectorizationLegality {
287287
/// we can use in-order reductions.
288288
bool canVectorizeFPMath(bool EnableStrictReductions);
289289

290-
/// Returns true if the loop has an early exit that we can vectorize.
291-
bool canVectorizeEarlyExit() const;
292-
293290
/// Return true if we can vectorize this loop while folding its tail by
294291
/// masking.
295292
bool canFoldTailByMasking() const;

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,25 +1515,6 @@ bool LoopVectorizationLegality::canVectorizeWithIfConvert() {
15151515
return true;
15161516
}
15171517

1518-
bool LoopVectorizationLegality::canVectorizeEarlyExit() const {
1519-
// Currently only allow vectorizing loops with early exits, if early-exit
1520-
// vectorization is explicitly enabled and the loop has metadata to force
1521-
// vectorization.
1522-
1523-
SmallVector<BasicBlock *> Exiting;
1524-
TheLoop->getExitingBlocks(Exiting);
1525-
if (Exiting.size() == 1)
1526-
return false;
1527-
1528-
LoopVectorizeHints Hints(TheLoop, true, *ORE);
1529-
if (Hints.getForce() == LoopVectorizeHints::FK_Undefined)
1530-
return false;
1531-
1532-
Function *Fn = TheLoop->getHeader()->getParent();
1533-
return Hints.allowVectorization(Fn, TheLoop,
1534-
true /*VectorizeOnlyWhenForced*/);
1535-
}
1536-
15371518
// Helper function to canVectorizeLoopNestCFG.
15381519
bool LoopVectorizationLegality::canVectorizeLoopCFG(Loop *Lp,
15391520
bool UseVPlanNativePath) {

0 commit comments

Comments
 (0)