Re: [PATCH] tree-optimization/108306 - Correctly detect shifts out of range

2023-01-24 Thread Richard Biener via Gcc-patches
On Tue, Jan 24, 2023 at 12:22 AM Andrew MacLeod via Gcc-patches wrote: > > get_shift_range was incorrectly communicating that it couldn't calculate > a range when the shift value was out of range. > > Fix this and always return a range of [0, 0] instead of varying when the > shift value is out of

[PATCH] tree-optimization/108306 - Correctly detect shifts out of range

2023-01-23 Thread Andrew MacLeod via Gcc-patches
get_shift_range was incorrectly communicating that it couldn't calculate a range when the shift value was out of range. Fix this and always return a range of [0, 0] instead of varying when the shift value is out of range. Bootstraps with no regressions on x86_64-pc-linux-gnu.  OK for trunk?