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
Better codegen for overflow checking and extracting that value, and then setting to -1 if it overflows yields better codegen than the much more succinct saturated add instrinsic #117620
Despite these all having the same behavior, not only is the one with the bigger IR resulting in better codegen, but it is also not being optimized to the more succinct saturated add intrinsic
https://godbolt.org/z/zPM1f5vjs
Despite these all having the same behavior, not only is the one with the bigger IR resulting in better codegen, but it is also not being optimized to the more succinct saturated add intrinsic