https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113385
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:afac1bd33657a5054f5e6ea6746c25bbb70b82f2 commit r14-7243-gafac1bd33657a5054f5e6ea6746c25bbb70b82f2 Author: Richard Biener <rguent...@suse.de> Date: Mon Jan 15 10:03:59 2024 +0100 tree-optimization/113385 - wrong loop father with early exit vectorization The following avoids splitting an edge before redirecting it. This allows the loop father of the new block to be correct in the first place. PR tree-optimization/113385 * tree-vect-loop-manip.cc (slpeel_tree_duplicate_loop_to_edge_cfg): First redirect, then split the exit edge.