https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98544
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Richard Biener from comment #5) > (In reply to Martin Liška from comment #3) > > For g++ bug2.cc -std=c++17 -O1 -mavx -ftree-loop-vectorize, it started with > > r11-3917-g28290cb50c7dbf87. > > Are you sure about this bisection? Reverting this doesn't fix the issue > (reversion isn't quite easy since split_constant_offset has undergone quite > some refactoring meanwhile). So I can confirm the bisection. I see quite some good effect of the change with no "obvious" mistakes done though so it might just trigger some latent issue elsewhere.