From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18395 invoked by alias); 18 Aug 2014 16:39:50 -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 18351 invoked by uid 48); 18 Aug 2014 16:39:42 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/62173] [AArch64] Performance regression due to r213488 Date: Mon, 18 Aug 2014 16:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed 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-08/txt/msg01222.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62173 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-08-18 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- Confirmed, Here is a much shorter testcase and not related to loops either: void bar(int i) { char A[10]; g(A); f(A[i]); } --- CUT --- Before: bar: stp x29, x30, [sp, -64]! add x29, sp, 0 stp x19, x20, [sp, 16] add x19, x29, 48 mov w20, w0 mov x0, x19 bl g ldrb w0, [x19, w20, sxtw] bl f ldp x19, x20, [sp, 16] ldp x29, x30, [sp], 64 ret After: bar: stp x29, x30, [sp, -48]! add x29, sp, 0 str x19, [sp, 16] mov w19, w0 add x0, x29, 32 bl g add x0, x29, 48 add x19, x0, x19, sxtw ldrb w0, [x19, -16] bl f ldr x19, [sp, 16] ldp x29, x30, [sp], 48 ret