[llvm] [LAA] Hoist check for SCEV-uncomputable dist (NFC) (PR #148841)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 06:02:50 PDT 2025
================
@@ -2085,6 +2085,12 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
if (!isa<SCEVConstant>(Dist))
FoundNonConstantDistanceDependence |= StrideAPtrInt == StrideBPtrInt;
+ // If distance is a SCEVCouldNotCompute, return Unknown immediately.
+ if (isa<SCEVCouldNotCompute>(Dist)) {
----------------
artagnon wrote:
I've tweaked the debug message now.
https://github.com/llvm/llvm-project/pull/148841
More information about the llvm-commits
mailing list