[Bug tree-optimization/27039] New: Unable to determine # of iterations for a simple loop
rakdver at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Apr 5 09:49:00 GMT 2006
With the fix for PR 26763, we are unable to determine # of iterations of the
following loop, more precisely, we are unable to determine that it rolls -- for
that, we would need to fold p_4 + 4B > p_4 + 8B.
int foo (int *p)
{
int i = 0, *x;
for (x = p; x < p + 2; x++)
i++;
return i;
}
--
Summary: Unable to determine # of iterations for a simple loop
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rakdver at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27039
More information about the Gcc-bugs
mailing list