https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111465
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:152400decc8383aeff9a9ad8262b9e7e2fff61e0 commit r13-8096-g152400decc8383aeff9a9ad8262b9e7e2fff61e0 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. (cherry picked from commit 564ecb7d5afb0bb4eb39285ce65c631490e37dce)