From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24344 invoked by alias); 28 May 2007 07:22:09 -0000 Received: (qmail 23747 invoked by uid 48); 28 May 2007 07:21:44 -0000 Date: Mon, 28 May 2007 07:22:00 -0000 Subject: [Bug tree-optimization/32120] New: missed PRE/FRE of a*2+4 and (a+2)*2 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg02469.txt.bz2 A testcase which we should optimize all the way to return true: int f(int a, int b) { int c = a+2; int d = c*2; int e = a*2; int f = e+4; return d == f; } -- Summary: missed PRE/FRE of a*2+4 and (a+2)*2 Product: gcc Version: 4.3.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=32120