https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98854
--- Comment #6 from rguenther at suse dot de <rguenther at suse dot de> --- On Wed, 27 Jan 2021, marxin at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98854 > > --- Comment #5 from Martin Li?ka <marxin at gcc dot gnu.org> --- > (In reply to Richard Biener from comment #4) > > Little bit convoluted testcase: > > > > double a[1024]; > > > > int bar(); > > void foo (int n) > > { > > double x = 0, y = 0; > > int i = 1023; > > do > > { > > x += a[i] + a[i+1]; > > y += a[i] / a[i+1]; > > if (bar ()) > > break; > > } > > while (--i); > > a[0] = x; > > a[1] = y; > > } > > > > What compiler (ISA options) do you use in order to vectorize this? I used -O3 but -O2 -ftree-slp-vectorize also vectorizes it.