https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93094
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Scalar MASK_STORE really shouldn't appear in the IL except in the copy of the loop intended for vectorization only (when it is transformed into vectorized MASK_STORE). So I'm afraid the above change leaks the loop intended for vectorization only into the IL somehow.