[llvm] [LV]Split store-load forward distance analysis from other checks (PR #121156)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 07:57:16 PST 2025


================
@@ -2242,7 +2246,11 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
     return Dependence::Unknown;
   }
 
-  MaxSafeVectorWidthInBits = std::min(MaxSafeVectorWidthInBits, MaxVFInBits);
+  if (IsTrueDataDependence && EnableForwardingConflictDetection && ConstDist)
+    MaxStoreLoadForwardSafeVF =
----------------
alexey-bataev wrote:

I'm splitting store-load forwarding and other dependecies here, so MaxSafeVectorWidthInBits is used to handle all dependencies, except for store-load forwarding

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


More information about the llvm-commits mailing list