https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111465
--- Comment #11 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:564ecb7d5afb0bb4eb39285ce65c631490e37dce commit r14-4128-g564ecb7d5afb0bb4eb39285ce65c631490e37dce Author: Richard Biener <rguent...@suse.de> Date: Tue Sep 19 12:36:04 2023 +0200 tree-optimization/111465 - bougs jump threading with no-copy src block The following avoids to forward thread a path with a EDGE_NO_COPY_SRC_BLOCK block that became non-empty due to folding. PR tree-optimization/111465 * tree-ssa-threadupdate.cc (fwd_jt_path_registry::thread_block_1): Cancel the path when a EDGE_NO_COPY_SRC_BLOCK became non-empty. * g++.dg/torture/pr111465.C: New testcase.