public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13871] New: g++ creates excessive amounts of NOTE_INSN_DELETED insns
@ 2004-01-26 21:12 dann at godzilla dot ics dot uci dot edu
2004-01-26 22:28 ` [Bug c++/13871] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-01-26 21:12 UTC (permalink / raw)
To: gcc-bugs
Using the testcase in PR8361
gcc from CVS HEAD
x86-linux
g++ -O2 -fno-inline generate-3.4.ii -dr
count the total number of insns in the .01.rtl dump:
grep -c "^(" generate-3.4.ii.01.rtl
138865
count the number of NOTE_INSN_DELETED insns:
grep -c "^(note.*DELETED" generate-3.4.ii.01.rtl
36070
So 25% of the total number of insns created are NOTE_INSN_DELETED.
Another data point, compare the RTL generated by gcc and g++ for the same
preprocessed file: combine.i
Total number of insns in the .01.rtl dump:
gcc:33014
g++:42638
Total number of NOTE_INSN_DELETED insns in the .01.rtl dump:
gcc:1966
g++:9799
These NOTE_INSN_DELETED insns are deleted later in the compilation process, but
they create extra garbage to be collected, and affect the spatial locality of
insns.
--
Summary: g++ creates excessive amounts of NOTE_INSN_DELETED insns
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13871
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/13871] g++ creates excessive amounts of NOTE_INSN_DELETED insns
2004-01-26 21:12 [Bug c++/13871] New: g++ creates excessive amounts of NOTE_INSN_DELETED insns dann at godzilla dot ics dot uci dot edu
@ 2004-01-26 22:28 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-26 22:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-26 22:28 -------
This is a dup of bug 13764. The problem is caused by the C++ front-end creating extra blocks.
*** This bug has been marked as a duplicate of 13764 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |memory-hog
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13871
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-26 22:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-26 21:12 [Bug c++/13871] New: g++ creates excessive amounts of NOTE_INSN_DELETED insns dann at godzilla dot ics dot uci dot edu
2004-01-26 22:28 ` [Bug c++/13871] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).