This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/27809] New: inefficient gimplification of globals
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2006 21:59:41 -0000
- Subject: [Bug tree-optimization/27809] New: inefficient gimplification of globals
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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