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


================
@@ -1070,6 +1070,50 @@ bool LoopVectorizationLegality::canVectorizeMemory() {
     return false;
   }
 
+  // For loops with uncountable early exiting blocks that are not the latch
----------------
paulwalker-arm wrote:

"that are not the latch" can be dropped because by definition the latch block cannot be early exiting?

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


More information about the llvm-commits mailing list