[llvm] LAA: version unit stride for stores (PR #124567)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 08:03:39 PST 2025


================
@@ -2545,7 +2545,8 @@ bool LoopAccessInfo::analyzeLoop(AAResults *AA, const LoopInfo *LI,
   for (StoreInst *ST : Stores) {
     Value *Ptr = ST->getPointerOperand();
 
-    if (isInvariant(Ptr)) {
+    const SCEV *PtrScev = replaceSymbolicStrideSCEV(*PSE, SymbolicStrides, Ptr);
----------------
artagnon wrote:

Sorry, I got confused when writing the LAA test: I've updated the commit message now.

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


More information about the llvm-commits mailing list