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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Jeff Law <l...@gcc.gnu.org>:

https://gcc.gnu.org/g:2498cbbcdb23dabce36477ce84e0266374b7e886

commit r15-9904-g2498cbbcdb23dabce36477ce84e0266374b7e886
Author: Sam James <s...@gentoo.org>
Date:   Mon Jun 23 23:28:01 2025 +0100

    Fixup dropping REG_EQUAL note in ext-dce

    Followup to r16-1613-g34e1e5e33ec3eb. remove_reg_equal_equiv_notes's
    2nd argument is 'no_rescan' which we accidentally had on, tripping
    an assert in combine or ira because we hadn't left things in a consistent
    state.

    Fix the thinko by enabling rescanning.

    gcc/ChangeLog:
            PR rtl-optimization/120795

            * ext-dce.cc (ext_dce_try_optimize_insn): Enable rescan in
            remove_reg_equal_equiv_notes call.

    Co-authored-by: Jeff Law <j...@ventanamicro.com>
    (cherry picked from commit cdd678544fefc313cb1c9da0327158d3ed355f62)

Reply via email to