https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120211
--- Comment #4 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:833db92d69cf371af3ade32e2a2b154c22e7ef15 commit r16-526-g833db92d69cf371af3ade32e2a2b154c22e7ef15 Author: Richard Biener <rguent...@suse.de> Date: Sun May 11 14:03:12 2025 +0200 tree-optimization/120211 - constrain LOOP_VINFO_EARLY_BREAKS_LIVE_IVS more The PR120089 fix added more PHIs to LOOP_VINFO_EARLY_BREAKS_LIVE_IVS but not checking that we only add PHIs with a latch argument. The following adds this missing check. PR tree-optimization/120211 * tree-vect-stmts.cc (vect_stmt_relevant_p): Only add PHIs from the loop header to LOOP_VINFO_EARLY_BREAKS_LIVE_IVS. * gcc.dg/vect/vect-early-break_135-pr120211.c: New testcase. * gcc.dg/torture/pr120211-1.c: Likewise.