[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
Mon Oct 27 21:34:03 PDT 2025


================
@@ -1630,7 +1644,7 @@ llvm::getPtrStride(PredicatedScalarEvolution &PSE, Type *AccessTy, Value *Ptr,
   if (!ShouldCheckWrap || !Stride)
     return Stride;
 
-  if (isNoWrap(PSE, AR, Ptr, AccessTy, Lp, Assume, Stride))
+  if (isNoWrap(PSE, AR, Ptr, AccessTy, Lp, Assume, *DT, Stride))
----------------
fhahn wrote:

Yeah, I also removed the default arg there thanks

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


More information about the llvm-commits mailing list