[llvm] [LAA] Hoist check for SCEV-uncomputable dist (NFC) (PR #148841)
Igor Kirillov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 05:15:36 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)) {
----------------
igogo-x86 wrote:
It looks like we are no longer performing `CheckCompletelyBeforeOrAfter` as before, so we can't come up with `NoDep` as we used to. So it's not entirely NFC, or am I missing something?
https://github.com/llvm/llvm-project/pull/148841
More information about the llvm-commits
mailing list