For (-O2 -fno-tree-dominator-opts -fno-tree-salias -fno-tree-sra)

int foo(int i)
{
  struct { int i; int j; } a;
  a.i = i;
  return a.i;
}

store copyprop does not propagate i to the return stmt.


-- 
           Summary: store copyprop not effective
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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

Reply via email to