https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104716
--- Comment #3 from CVS 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:54ef95cc4d1f3f2cde7c1f13250f889ffb81ca75 commit r12-7432-g54ef95cc4d1f3f2cde7c1f13250f889ffb81ca75 Author: Richard Biener <rguent...@suse.de> Date: Tue Mar 1 09:24:26 2022 +0100 tree-optimization/104716 - check if we can copy loop in loop distribution The following checks whether we can copy the loop before attempting to do so in loop distribution. In the testcase there's a computed goto and thus abnormal edges which we cannot redirect. 2022-03-01 Richard Biener <rguent...@suse.de> PR tree-optimization/104716 * tree-loop-distribution.cc (find_seed_stmts_for_distribution): Check if we can copy the loop. * gfortran.dg/pr104716.f: New testcase.