From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28707 invoked by alias); 5 Dec 2011 09:21:36 -0000 Received: (qmail 28692 invoked by uid 22791); 5 Dec 2011 09:21:34 -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; Mon, 05 Dec 2011 09:21:20 +0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/50904] [4.7 regression] pessimization when -fno-protect-parens is enabled by -Ofast Date: Mon, 05 Dec 2011 09:21: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 X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 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: 2011-12/txt/msg00363.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50904 --- Comment #39 from Eric Botcazou 2011-12-05 09:21:15 UTC --- > Thus, I think if at the RTL level we see a missed invariant motion then > this is a RTL level bug (esp. if it only triggers with -fno-protect-parens). Well, how can the RTL level invent load hoisting opportunities? They are of course already present at the Tree level, see the .optimized dump: vect_var_.124_350 = MEM[(real(kind=8)[9] *)&x2gauss]; vect_var_.133_823 = MEM[(real(kind=8)[9] *)&y2gauss]; vect_var_.157_586 = MEM[(real(kind=8)[9] *)&w2gauss]; vect_var_.124_357 = MEM[(real(kind=8)[9] *)&x2gauss + 16B]; vect_var_.133_363 = MEM[(real(kind=8)[9] *)&y2gauss + 16B]; vect_var_.157_874 = MEM[(real(kind=8)[9] *)&w2gauss + 16B]; vect_var_.124_405 = MEM[(real(kind=8)[9] *)&x2gauss + 32B]; vect_var_.133_594 = MEM[(real(kind=8)[9] *)&y2gauss + 32B]; vect_var_.157_610 = MEM[(real(kind=8)[9] *)&w2gauss + 32B]; vect_var_.124_651 = MEM[(real(kind=8)[9] *)&x2gauss + 48B]; vect_var_.133_680 = MEM[(real(kind=8)[9] *)&y2gauss + 48B]; vect_var_.157_805 = MEM[(real(kind=8)[9] *)&w2gauss + 48B];