https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109596
--- Comment #13 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:c7e8a8d814229fd6fc4c16c2452f15dddc613479 commit r14-9912-gc7e8a8d814229fd6fc4c16c2452f15dddc613479 Author: Richard Biener <rguent...@suse.de> Date: Thu Apr 11 11:08:07 2024 +0200 tree-optimization/109596 - wrong debug stmt move by copyheader The following fixes an omission in r14-162-gcda246f8b421ba causing wrong-debug and a bunch of guality regressions. PR tree-optimization/109596 * tree-ssa-loop-ch.cc (ch_base::copy_headers): Propagate debug stmts to nonexit->dest rather than exit->dest.