[llvm] [SCEV] Handle non-constant start values in AddRec UDiv canonicalization. (PR #170474)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 12:45:18 PST 2025


================
@@ -3491,10 +3491,9 @@ const SCEV *ScalarEvolution::getUDivExpr(const SCEV *LHS,
           /// Get a canonical UDivExpr for a recurrence.
           /// {X,+,N}/C => {Y,+,N}/C where Y=X-(X%N). Safe when C%N=0.
           // We can currently only fold X%N if X is constant.
----------------
fhahn wrote:

Stripped, thanks

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


More information about the llvm-commits mailing list