re PR rtl-optimization/83496 (wrong code generated with -Os -mbranch-cost=1)
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 26 Feb 2018 16:29:30 +0000 (16:29 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 26 Feb 2018 16:29:30 +0000 (16:29 +0000)
commitf41881a4ad3df8d3431c60f4dedb76ecf3d34f13
tree4bb90f08dccd078e84677fabd28db0a9faf0d619
parentd99dcb77bbbfdaf30c5993ea917001da259f47ba
re PR rtl-optimization/83496 (wrong code generated with -Os -mbranch-cost=1)

PR rtl-optimization/83496
* reorg.c (steal_delay_list_from_target): Change REDUNDANT array from
booleans to RTXes.  Call fix_reg_dead_note on every non-null element.
(steal_delay_list_from_fallthrough): Call fix_reg_dead_note on a
redundant insn, if any.
(relax_delay_slots): Likewise.
(update_reg_unused_notes): Rename REDUNDANT_INSN to OTHER_INSN.

From-SVN: r257996
gcc/ChangeLog
gcc/reorg.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20180226-1.c [new symlink]