From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13484 invoked by alias); 24 Dec 2005 01:46:22 -0000 Received: (qmail 13477 invoked by uid 48); 24 Dec 2005 01:46:21 -0000 Date: Sat, 24 Dec 2005 01:46:00 -0000 Subject: [Bug tree-optimization/25553] New: Missed removal of load X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2005-12/txt/msg02465.txt.bz2 List-Id: I don't know what this optimization is called but we miss the removal of the load of a global variable: int t; int g(int); int f(int tt) { if (tt) t = 2; else t = 3; return g(t); } I should note I found this while looking at LAPACK. -- Summary: Missed removal of load Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25553