[Bug rtl-optimization/110717] Double-word sign-extension missed-optimization

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 21 09:06:47 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110717

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
To handle this in generic code, I think expand_expr_real_2 woiuld need to
notice this case of << operand of arithmetic >> by same amount and tell that to
expand_variable_shift -> expand_shift_1 -> expand_binop somehow.
Wasn't there a proposal for SEXT_EXPR at some point?


More information about the Gcc-bugs mailing list