From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15140 invoked by alias); 26 Jan 2004 21:12:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15127 invoked by uid 48); 26 Jan 2004 21:12:11 -0000 Date: Mon, 26 Jan 2004 21:12:00 -0000 From: "dann at godzilla dot ics dot uci dot edu" To: gcc-bugs@gcc.gnu.org Message-ID: <20040126211208.13871.dann@godzilla.ics.uci.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13871] New: g++ creates excessive amounts of NOTE_INSN_DELETED insns X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg03324.txt.bz2 List-Id: 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