https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110740
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Hmm, shouldn't this also apply to the main loop? I suppose we just never get such a case, but maybe with peeling for gaps we would? Eventually we'd hope we never would cost it as profitable. In any case the patch looks reasonable.