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