From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20555 invoked by alias); 16 Jun 2014 09:45:17 -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 20496 invoked by uid 48); 16 Jun 2014 09:45:12 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/61515] Extremely long compile time for generated code Date: Mon, 16 Jun 2014 09:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: 2014-06/txt/msg01351.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61515 --- Comment #5 from Richard Biener --- 4.8 and 4.9 at -O0 take ~32s and ~2.4GB of ram (and IRA taking 28% of the time) 4.8 at -O1 takes ~15min and ~5.5GB of ram (RTL loop invariant motion taking 80% of the time - ugh) 4.9 at -O1 takes ~5min and ~2GB of ram (30% compile time in SSA incremental, 27% in DF) Now -O[s2] will enable passes that are not really "tamed" and may show quadratic behavior (PRE and VRP for example, off the top of my head). You're supposed to drop to -O1 whenever you hit this kind of bug ... Building release checking trunk now.