[llvm] [LAA] Only use inbounds/nusw in isNoWrap if the GEP is dereferenced. (PR #161445)

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 3 03:04:53 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) {
----------------
kasuga-fj wrote:

You cannot place a parameter without a default argument after the one that has a default argument, I think.

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


More information about the llvm-commits mailing list