[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:15 PDT 2024


================
@@ -446,6 +480,9 @@ class LoopVectorizationLegality {
   /// specific checks for outer loop vectorization.
   bool canVectorizeOuterLoop();
 
+  /// Returns true if this is an early exit loop that can be vectorized.
----------------
fhahn wrote:

It would probably be helpful to summarize the required conditions here (or somewhere else)

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


More information about the llvm-commits mailing list