https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115484
Sam James <sjames at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|if-to-switch prevents AVX |[11/12/13/14/15 regression] |vectorization |if-to-switch prevents AVX | |vectorization --- Comment #2 from Sam James <sjames at gcc dot gnu.org> --- GCC 8 vectorises it: https://godbolt.org/z/Y8Pvxsh5c.