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/22196] New: Missed back prop


The following two functions should be equal:
unsigned f(int i, unsigned x)
{
  unsigned y;
  if (i)
    y = 1024;
  else
    y = 1024*1024;
  return x/y ;
}

unsigned f1(int i, unsigned x)
{
  unsigned y;
  if (i)
    y = x/ 1024;
  else
    y = x/(1024*1024);
  return y ;
}

-- 
           Summary: Missed back prop
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22196


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