int i;
void f()
{
  int t = i;
  if(t == 4)
    t = 3;
  i = t;
}

void f1()
{
  if (i == 4)
   i = 3;

}

-- 
           Summary: store should not be done if we don't change its value
           Product: gcc
           Version: unknown
            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=20999

Reply via email to