[llvm] [LAA] Only use inbounds/nusw in isNoWrap if the GEP is dereferenced. (PR #161445)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 26 19:46:43 PDT 2025
================
@@ -1602,7 +1620,7 @@ std::optional<int64_t>
llvm::getPtrStride(PredicatedScalarEvolution &PSE, Type *AccessTy, Value *Ptr,
const Loop *Lp,
const DenseMap<Value *, const SCEV *> &StridesMap,
- bool Assume, bool ShouldCheckWrap) {
+ bool Assume, bool ShouldCheckWrap, DominatorTree *DT) {
----------------
fhahn wrote:
Looks like DT is now available in all cases, updated to pass it unconditionally, thanks
https://github.com/llvm/llvm-project/pull/161445
More information about the llvm-commits
mailing list