https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88926
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-* Status|UNCONFIRMED |NEW Last reconfirmed| |2019-01-21 CC| |amker at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. Just to quote the testcase we don't optimize: void f1 (int *p, unsigned int i) { __PTRDIFF_TYPE__ o = i; o *= 4; p = (int *)((char *)p + o); do { *p = 0; p += 1; i++; } while (i < 100); }