[llvm] [LAA] Support different strides & non constant dep distances using SCEV. (PR #88039)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 05:47:16 PDT 2024
================
@@ -126,8 +126,10 @@ struct StoreToLoadForwardingCandidate {
// We don't need to check non-wrapping here because forward/backward
// dependence wouldn't be valid if these weren't monotonic accesses.
- auto *Dist = cast<SCEVConstant>(
+ auto *Dist = dyn_cast<SCEVConstant>(
PSE.getSE()->getMinusSCEV(StorePtrSCEV, LoadPtrSCEV));
+ if (!Dist)
+ return false;
----------------
Meinersbur wrote:
Is this related? LAA doesn't seem to be involved.
https://github.com/llvm/llvm-project/pull/88039
More information about the llvm-commits
mailing list