[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:24 PST 2025
    
    
  
================
@@ -868,6 +878,9 @@ static bool isNoWrap(PredicatedScalarEvolution &PSE, const SCEVAddRecExpr *AR,
       return true;
   }
 
+  if (!Ptr)
+    return false;
+
----------------
artagnon wrote:
If AR is stripped from isNoWrapAddRec (actually isNoWrapGEP), the check for it in this function can be moved after the Ptr check.
https://github.com/llvm/llvm-project/pull/127410
    
    
More information about the llvm-commits
mailing list