[Bug tree-optimization/38497] New: PRE missing a load PRE which causes a loop to have two BBs
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 11 23:22:00 GMT 2008
Testcase:
void DoHuffIteration(int);
int f(int *a)
{
int i;
int plaintextlen=*a;
for(i = 0; i< 10000; i++)
DoHuffIteration(*a);
return *a - plaintextlen;
}
--- CUT ---
There is a load of *a after that loop even though we could have placed the load
inside the loop after the call.
--
Summary: PRE missing a load PRE which causes a loop to have two
BBs
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38497
More information about the Gcc-bugs
mailing list