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