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/27809] New: inefficient gimplification of globals


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


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