https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119577
--- Comment #2 from Tamar Christina <tnfchris at gcc dot gnu.org> --- (In reply to Richard Biener from comment #1) > IIRC it depends on the "kind" of early break whether we need the > first IV (scalar IV possible) or the last, but I don't rememeber exactly. First is always required for any early exit, it's the main exit that alternates between first and last. The main exit uses first when the exit chosen as the main one is not the same as the scalar loop. i.e. when PEELED is true, as in this case it means all exits through the vector loop is an early exit. If the loop is not an inverted/vector peeled loop, the main exit uses last.