[llvm] [LoopVectorize] Teach LoopVectorizationLegality about more early exits (PR #107004)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 13 01:47:16 PDT 2024


================
@@ -1442,6 +1487,126 @@ bool LoopVectorizationLegality::canVectorizeLoopNestCFG(
   return Result;
 }
 
+bool LoopVectorizationLegality::isVectorizableEarlyExitLoop() {
+  // At least one of the exiting blocks must be the latch.
----------------
fhahn wrote:

Below just checks if there's a latch, not if it is exiting?

https://github.com/llvm/llvm-project/pull/107004


More information about the llvm-commits mailing list