[Bug tree-optimization/98854] [11 Regression] cray benchmark is about 15% slower since r11-4428-g4a369d199bf2f34e
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 27 14:39:33 GMT 2021
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?
More information about the Gcc-bugs
mailing list