[Bug tree-optimization/27809] New: inefficient gimplification of globals

dann at godzilla dot ics dot uci dot edu gcc-bugzilla@gcc.gnu.org
Mon May 29 21:59:00 GMT 2006


This code:

int G;
int lll (int a) { bar (G, G, G, G); }

is gimplified like this:

lll (a)
{
  int G.2;

  G.2 = G;
  G.2 = G;
  G.2 = G;
  G.2 = G;
  bar (G.2, G.2, G.2, G.2);
}

Creating that many identical expressions is wastefull...


-- 
           Summary: inefficient gimplification of globals
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu


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



More information about the Gcc-bugs mailing list