Re: [PATCH 1/3] Improve ssa_name_has_boolean_range slightly

2023-09-04 Thread Jeff Law via Gcc-patches
On 9/2/23 09:09, Andrew Pinski via Gcc-patches wrote: Right now ssa_name_has_boolean_range compares the range to range_true_and_false but instead we would get the nonzero bits and compare that to 1 instead (<=u 1). The nonzerobits comparison can be done in similar fashion. Note I think get_non

[PATCH 1/3] Improve ssa_name_has_boolean_range slightly

2023-09-02 Thread Andrew Pinski via Gcc-patches
Right now ssa_name_has_boolean_range compares the range to range_true_and_false but instead we would get the nonzero bits and compare that to 1 instead (<=u 1). The nonzerobits comparison can be done in similar fashion. Note I think get_nonzero_bits is redundant as the range queury will return a mo