[llvm] [LV] Add initial legality checks for ee loops with stores (PR #145663)

Graham Hunter via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 18 08:56:26 PDT 2025


================
@@ -1207,8 +1208,42 @@ bool LoopVectorizationLegality::canVectorizeMemory() {
     });
   }
 
-  if (!LAI->canVectorizeMemory())
-    return canVectorizeIndirectUnsafeDependences();
+  if (LAI->canVectorizeMemory()) {
----------------
huntergr-arm wrote:

I'm not sure about adding this to LoopAccessAnalysis; are there other passes that could make use of the info?

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


More information about the llvm-commits mailing list