https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120357
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:bcf8cec0e8f11a9de0b435688cb82dcf8810686b commit r14-12076-gbcf8cec0e8f11a9de0b435688cb82dcf8810686b Author: Richard Biener <[email protected]> Date: Fri May 30 14:11:47 2025 +0200 tree-optimization/120357 - ICE with early break vectorization When doing early break vectorization of a loop with a conditional reduction the epilog creation code is confused as to before which exit to insert the conditional reduction induction IV update. The following make sure this is done before the main IV exit. PR tree-optimization/120357 * tree-vect-loop.cc (vect_create_epilog_for_reduction): Create the conditional reduction induction IV increment before the main IV exit. * gcc.dg/vect/vect-early-break_136-pr120357.c: New testcase. (cherry picked from commit dce4da51ab66c3abb84448326910cd42f6fe2499)
