https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107301
--- 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:5ad3cc1ecc3c7c61d5e319f74cb7287fb80944fd commit r13-3352-g5ad3cc1ecc3c7c61d5e319f74cb7287fb80944fd Author: Richard Biener <rguent...@suse.de> Date: Tue Oct 18 09:38:03 2022 +0200 tree-optimization/107301 - check if we can duplicate block before doing so Path isolation failed to do that. PR tree-optimization/107301 * gimple-ssa-isolate-paths.cc (handle_return_addr_local_phi_arg): Check whether we can duplicate the block. (find_implicit_erroneous_behavior): Likewise. * gcc.dg/torture/pr107301.c: New testcase.