[llvm] [LLVM][SCEV] Look through common vscale multiplicand when simplifying compares. (PR #141798)
    Paul Walker via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Sep  9 04:58:37 PDT 2025
    
    
  
================
@@ -10959,7 +10978,7 @@ bool ScalarEvolution::SimplifyICmpOperands(CmpPredicate &Pred, const SCEV *&LHS,
   // Recursively simplify until we either hit a recursion limit or nothing
   // changes.
   if (Changed)
-    return SimplifyICmpOperands(Pred, LHS, RHS, Depth + 1);
+    return SimplifyICmpOperands(Pred, LHS, RHS, Depth + 1), true;
 
----------------
paulwalker-arm wrote:
Hopefully you don't mind but the extra return looked a little weird so I dropped the return instead?
https://github.com/llvm/llvm-project/pull/141798
    
    
More information about the llvm-commits
mailing list