]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fixup dropping REG_EQUAL note in ext-dce
authorSam James <sam@gentoo.org>
Mon, 23 Jun 2025 22:28:01 +0000 (23:28 +0100)
committerJeff Law <jlaw@ventanamicro.com>
Thu, 3 Jul 2025 01:55:05 +0000 (19:55 -0600)
commit2498cbbcdb23dabce36477ce84e0266374b7e886
tree1d0209ac588c5abb391fbf87905df6115a0b1620
parent8b3e6dbe51362204d2c3544892720c7cea30b08c
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 <jlaw@ventanamicro.com>
(cherry picked from commit cdd678544fefc313cb1c9da0327158d3ed355f62)
gcc/ext-dce.cc