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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 03:48:06 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 =
----------------
fhahn wrote:

Shouldn't `MaxSafeVectorWidthInBits` be updated unconditionally?

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


More information about the llvm-commits mailing list