[Bug rtl-optimization/83496] [7/8 regression] wrong code generated with -Os -mbranch-cost=1
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 26 16:41:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496
--- Comment #35 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Mon Feb 26 16:39:41 2018
New Revision: 258000
URL: https://gcc.gnu.org/viewcvs?rev=258000&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/execute/20180226-1.c
- copied unchanged from r257998,
trunk/gcc/testsuite/gcc.c-torture/execute/20180226-1.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/reorg.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list