On 5/19/23 20:14, Andrew Pinski via Gcc-patches wrote:
The code in fold_single_bit_test, checks if
the inner was a right shift and improve the bitnum
based on that. But since the inner will always be a
SSA_NAME at this point, the code is dead. Move it over
to use the helper function get_def_for_expr instead.

OK? Bootstrapped and tested on x86_64-linux.

gcc/ChangeLog:

        * expr.cc (fold_single_bit_test): Use get_def_for_expr
        instead of checking the inner's code.
OK.
jeff

Reply via email to