You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, regressed in .NET 11: .NET 8, 9 and 10 are correct; .NET 11 RC2 and main are affected (win-x64).
Notes
For i + k (lcl + lcl), IsBinOpMonotonicallyIncreasing checks k with rejectNegativeConst=true, but k = m + 2 is lcl + cns, which recurses into m with rejectNegativeConst=false, so m's negative seed -4 is accepted.
The flag should be propagated through the GT_ADD case in IsMonotonicallyIncreasing. The fold happens in assertion prop via RangeCheck::TryGetRange, so DOTNET_JitDoRangeAnalysis=0 does not hide it.
Related to #133818 (different root cause: the alreadyPresent search-path shortcut).
Activity
dotnet-policy-service commentedon Sep 22, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
JIT: Propagate rejectNegativeConst through lcl + cns in monotonicity …