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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 04:17:54 PDT 2025


================
@@ -512,7 +520,7 @@ class LoopVectorizationLegality {
   /// we read and write from memory. This method checks if it is
   /// legal to vectorize the code, considering only memory constrains.
   /// Returns true if the loop is vectorizable
-  bool canVectorizeMemory();
+  bool canVectorizeMemory(std::optional<LoadInst *>);
----------------
david-arm wrote:

Can you add names to the new argument here and on `isVectorizableEarlyExitLoop`? That seems to match existing convention.

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


More information about the llvm-commits mailing list