File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed
include/llvm/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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.
15381519bool LoopVectorizationLegality::canVectorizeLoopCFG (Loop *Lp,
15391520 bool UseVPlanNativePath) {
You can’t perform that action at this time.
0 commit comments