This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32120] New: missed PRE/FRE of a*2+4 and (a+2)*2
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2007 07:21:44 -0000
- Subject: [Bug tree-optimization/32120] New: missed PRE/FRE of a*2+4 and (a+2)*2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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