From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3840 invoked by alias); 19 Feb 2012 17:43:39 -0000 Received: (qmail 3820 invoked by uid 22791); 19 Feb 2012 17:43:37 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 19 Feb 2012 17:43:25 +0000 From: "mikpe at it dot uu.se" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/42961] [4.5/4.6 regression] IRA register preferencing bug Date: Sun, 19 Feb 2012 17:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: missed-optimization, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: mikpe at it dot uu.se X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.5.4 X-Bugzilla-Changed-Fields: 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: 2012-02/txt/msg01903.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42961 --- Comment #8 from Mikael Pettersson 2012-02-19 17:43:07 UTC --- The movss instructions were eliminated on trunk by Vladimir Makarov's "patch to solve recent SPEC2000 degradation" in r178019: http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01954.html http://gcc.gnu.org/ml/gcc-cvs/2011-08/msg01034.html The code generation change at that point is: --- pr42961.s-r178018 2012-02-19 18:22:46.000000000 +0100 +++ pr42961.s-r178019 2012-02-19 18:17:07.000000000 +0100 @@ -10,18 +10,17 @@ ucomiss %xmm2, %xmm2 jp .L7 jne .L7 - movss %xmm1, -4(%rsp) .L2: movl f(%rip), %eax testl %eax, %eax je .L4 - movss -4(%rsp), %xmm2 + movaps %xmm1, %xmm2 .L4: movaps %xmm2, %xmm0 ret .L7: movaps %xmm1, %xmm2 - movss %xmm0, -4(%rsp) + movaps %xmm0, %xmm1 jmp .L2 .cfi_endproc .LFE0: