On 4/18/23 03:06, Jakub Jelinek wrote:
Hi!

While we've agreed this is not the right fix for the PR109040 bug,
the patch clearly improves generated code (at least on the testcase from the
PR), so I'd like to propose this as optimization heuristics improvement
for GCC 14.

Ok for trunk?

2023-04-18  Jakub Jelinek  <ja...@redhat.com>

        PR target/109040
        * dse.cc (replace_read): If read_reg is a SUBREG of a word mode
        REG, for WORD_REGISTER_OPERATIONS copy SUBREG_REG of it into
        a new REG rather than the SUBREG.
Doesn't the new behavior need to be conditional on can_create_pseudos_p since the call to copy_to_mode_reg can ultimately call gen_reg_rtx.


jeff

Reply via email to