This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52346] New: Two abs in a row is being optimized to just one on the tree level
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2012 04:40:14 +0000
- Subject: [Bug tree-optimization/52346] New: Two abs in a row is being optimized to just one on the tree level
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52346
Bug #: 52346
Summary: Two abs in a row is being optimized to just one on the
tree level
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pinskia@gcc.gnu.org
double f(double a, double b)
{
a = __builtin_fabs (a);
return __builtin_fabs (a);
}
Should only have one ABS_EXPR in the final tree dump. Note this is optimized
away on the RTL level.