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

            Bug ID: 61672
           Summary: Less redundant instructions deleted by pre_delete
                    after r208113.
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ysrumyan at gmail dot com

In real application which is compiled with restrictions on frame size after
r208113 number of deleted redundant instruction decreased significantly:
3744  vs 247 and we assume that this is the reason of frame size increasing.
I reproduced this regression using gcc/testsuite/g++.dg/torture/pr58464 for
which we have 8(before fix) vs 4.

r208113 | rguenth | 2014-02-25 12:59:10 +0400 (Tue, 25 Feb 2014) | 10 lines
Changed paths:
 M /trunk/gcc/ChangeLog
 M /trunk/gcc/emit-rtl.c

2014-02-25 Richard Biener <rguent...@suse.de>
PR middle-end/60291 •emit-rtl.c (mem_attrs_htab): Remove.
 (mem_attrs_htab_hash): Likewise.
 (mem_attrs_htab_eq): Likewise.
 (set_mem_attrs): Always allocate new mem-attrs when something
 changed.
 (init_emit_once): Do not allocate mem_attrs_htab.

Reply via email to