From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27594 invoked by alias); 29 Aug 2011 03:01:18 -0000 Received: (qmail 27584 invoked by uid 22791); 29 Aug 2011 03:01:17 -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 03:01:04 +0000 From: "pinskia 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:02: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: 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: 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/msg02263.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50204 --- Comment #2 from Andrew Pinski 2011-08-29 03:00:48 UTC --- Created attachment 25124 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25124 Patch which was tested on x86_64 without any regressions Note I am going to add this patch here as the copyright assignment for Cavium is not completed yet (though it is in the process of clearing up). This implements what is mentioned in comment #1 and was tested on x86_64-linux-gnu with no regressions. I don't know what the compile time slow down that happens yet and have not added any testcases but it works on the testcase attached to the bug. I also have not checked what the performance increase on SPEC would be.