https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109605
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-05-17 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Take a simple LP64 testcase (just to make the aliasing happy): ``` int f1(long long *a, long *b, long *c) { long a0, a1; a[0] = b[0] + c[0]; a[1] = b[1] + c[1]; } ``` At `-O2`, SLP vectorizers it. `-O2 -fno-tree-vectorize` disables the SLP vectorizer But if you did: `-O2 -ftree-slp-vectorize -fno-tree-vectorize` the SLP vectorizer is turned on still. This is what is definitely counter-intuitive really.