From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17002 invoked by alias); 10 May 2013 10:49:58 -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 16962 invoked by uid 48); 10 May 2013 10:49:54 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57218] [4.8/4.9 Regression] Excessive inlining even at -Os Date: Fri, 10 May 2013 10:49: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: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.1 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: 2013-05/txt/msg00674.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57218 --- Comment #2 from Jan Hubicka --- Yep, it is just heuristic here. We may get more cureful at -Os (i.e. not so optimistic about the optimization oppurtunities), but last time I played with this it actually resulted in code size increase at Mozilla and -Os. LLVM is doing kind of oposite heuristic tracking when function gets address of local variable as a parameter and anticipate SRA then. I suppose I can give this a try even though it will miss all the optimization of dynamically allocated objects...