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
{{ message }}
Repository navigation
Unnecessary overflow check with checked on 64-bit ryujit #111567
The checked can be elided on 64-bit, since a fits within 32 bits & a * 8 fits within 35 bits, which means no overflow can occur with 64-bits of storage.
Seemingly doesn't reproduce on 32-bit when nuint is replaced with ulong (but still does on 64-bit)? Sharplab link
Activity
dotnet-policy-service commentedon Jan 18, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
[-]Unnecessary overflow check with checked[/-][+]Unnecessary overflow check with checked on 64-bit ryujit[/+]xtqqczze commentedon Jan 18, 2025
The code generation issue is actually worse, using
checkedforces use ofmulinstead ofshl:SharpLab
huoyaoyuan commentedon Jan 18, 2025
Also #105333