https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105219
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- eventually you can narrow down the mis-vectorized loop with -fdbg-cnt=vect_loop:1-1 vs 2-2 (and the 2nd loop has its epilogue vectorized for me? so maybe try with --param vect-epilogues-nomask=0 as well.