[llvm] [LAA] Make Ptr argument optional in isNoWrap. (PR #127410)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 16 12:16:23 PST 2025
================
@@ -868,6 +878,9 @@ static bool isNoWrap(PredicatedScalarEvolution &PSE, const SCEVAddRecExpr *AR,
return true;
}
+ if (!Ptr)
+ return false;
+
----------------
artagnon wrote:
Hmpf, if Ptr is nullptr, Assume is ignored: perhaps it makes sense to add a comment about this in the function's doc?
https://github.com/llvm/llvm-project/pull/127410
More information about the llvm-commits
mailing list