This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/52346] New: Two abs in a row is being optimized to just one on the tree level


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]