From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27435 invoked by alias); 29 Aug 2011 07:30:55 -0000 Received: (qmail 27419 invoked by uid 22791); 29 Aug 2011 07:30:50 -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, 29 Aug 2011 07:30:37 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/50204] [4.5/4.6/4.7 Regression] Missed fully redundant load found in crafty (SPEC 2k) Date: Mon, 29 Aug 2011 07:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 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: 2011-08/txt/msg02267.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50204 --- Comment #3 from Richard Guenther 2011-08-29 07:29:57 UTC --- The loop over PHI args is a little hard to follow, but yeah, that's how it should work. Eventually we can put this in with a new --param telling the maximum number of PHI args to consider (and defaulting it to two). I'd probably keep the n == 1 handling in the main function separately instead of trying to handle it via the loop. Then I'd pre-seed the first arg which should make the loop a little easier to follow.