https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57858
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Richard Biener from comment #7) > It was fixed by adding another loop header copying pass before > vectorization, aka ch_vect. But that went in way in GCC 6 (r6-1951) but the loop header copying was not happening until GCC 8.