From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23660 invoked by alias); 8 Nov 2011 22:31:26 -0000 Received: (qmail 23646 invoked by uid 22791); 8 Nov 2011 22:31:25 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_DD,TW_VS 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; Tue, 08 Nov 2011 22:31:12 +0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/51041] g++ strange optimisation behaviour Date: Tue, 08 Nov 2011 22:31: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: 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-Changed-Fields: Keywords Status Last reconfirmed Component Ever Confirmed 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: 2011-11/txt/msg00839.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51041 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization, ra Status|UNCONFIRMED |NEW Last reconfirmed| |2011-11-08 Component|other |rtl-optimization Ever Confirmed|0 |1 --- Comment #2 from Andrew Pinski 2011-11-08 22:31:08 UTC --- .L10: movsd (%rbx,%rdx,8), %xmm0 mulsd 0(%rbp,%rdx,8), %xmm0 addq $1, %rdx cmpq $10000, %rdx addsd %xmm0, %xmm2 jne .L10 vs: .L10: movsd (%rbx,%rdx,8), %xmm0 mulsd 0(%rbp,%rdx,8), %xmm0 addq $1, %rdx cmpq $10000, %rdx addsd (%rsp), %xmm0 movsd %xmm0, (%rsp) jne .L10 With -fno-exceptions I get the RA to act better again.