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

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 05:39:59 PDT 2024


================
@@ -446,6 +480,10 @@ class LoopVectorizationLegality {
   /// specific checks for outer loop vectorization.
   bool canVectorizeOuterLoop();
 
+  /// Returns true if this is a supported early exit loop that we can
+  /// vectorize.
----------------
paulwalker-arm wrote:

What does "supported" mean in this context? Would it suffice to say "Returns true if this is an early exit loop that can be vectorized".

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


More information about the llvm-commits mailing list