Unnecessary overflow check with checked on 64-bit ryujit #111567
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
tenet-performance
Performance related issue
Milestone
Description
Elidable
checked
is not elided./cc @EgorBo who asked me to open an issue for it
Configuration
64-bit on sharplab.com
Regression?
Probably not.
Data
gives
Sharplab link
Analysis
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 withulong
(but still does on 64-bit)? Sharplab linkThe text was updated successfully, but these errors were encountered: