From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12743 invoked by alias); 18 Jan 2013 10:39:16 -0000 Received: (qmail 12551 invoked by uid 48); 18 Jan 2013 10:38:56 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/21182] [4.6/4.7/4.8 Regression] gcc can use registers but uses stack instead Date: Fri, 18 Jan 2013 10:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: missed-optimization, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: CC Target Milestone Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-01/txt/msg01698.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21182 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vmakarov at gcc dot gnu.org Target Milestone|--- |4.6.4 Summary|gcc can use registers but |[4.6/4.7/4.8 Regression] |uses stack instead |gcc can use registers but | |uses stack instead --- Comment #10 from Richard Biener 2013-01-18 10:38:54 UTC --- 4.4.7 and 4.5.4 generate the same code (no stack use) for -D/-UNAIL_REGS. With 4.6.3, the -DNAIL_REGS code regresses very much (IRA ...), the -UNAIL_REGS code is nearly perfect but less good than 4.4/4.5 (if you only consider grep esp serpent.s | wc -l). Same behavior with 4.7.2. Trunk got somewhat worse with -UNAIL_REGS but better with -DNAIL_REGS (at -O2): -UNAIL_REGS -DNAIL_REGS 4.5.4 3 3 4.6.3 15 101 4.7.2 15 93 4.8.0 23 70 The most important thing to fix is the -UNAIL_REGS case of course. A regression for that from 4.4/4.5.