From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26046 invoked by alias); 24 Feb 2015 15:53:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25914 invoked by uid 48); 24 Feb 2015 15:53:43 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/58315] [4.8/4.9/5 Regression] Excessive memory use with -g Date: Tue, 24 Feb 2015 16:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg02672.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58315 --- Comment #22 from Jakub Jelinek --- (In reply to Aldy Hernandez from comment #21) > Let me see if I understood this correctly. We need a DSE/DCE pass right > before var-tracking that would eliminate the redundant `this' statements > right before a non debug statement. So, for something like this: First of all, these are GIMPLE statements, so doing anything on them can't be right before var-tracking, which is one of the last RTL passes. That said, I very much doubt you can DCE much here, just use -fdump-tree-*-all to see the uids of the this PARM_DECLs/VAR_DECLs, I bet most of them will be different. > > # DEBUG this => &cs > # DEBUG D#61 => &cs.D.73561 > # DEBUG this => D#61 > # DEBUG topol => 0 > # DEBUG D#60 => &D#61->D.71953 > # DEBUG this => D#60 > # DEBUG D#59 => &D#60->rows > # DEBUG this => D#59 > # DEBUG D#58 => &D#59->D.66859 > # DEBUG this => D#58 > # DEBUG D#57 => &D#58->_M_impl > # DEBUG this => D#57 > # DEBUG this => D#57 > # DEBUG this => D#57 > MEM[(struct _Vector_impl *)&cs]._M_start = 0B; >