https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106497
--- Comment #5 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:0f3514756e0b4d8993ee43dcd958974eb1424061 commit r13-1929-g0f3514756e0b4d8993ee43dcd958974eb1424061 Author: Richard Biener <rguent...@suse.de> Date: Tue Aug 2 12:19:25 2022 +0200 tree-optimization/106497 - more forward threader can-copy-bb This adds EDGE_COPY_SRC_JOINER_BLOCK sources to the set of blocks we need to check we can duplicate. PR tree-optimization/106497 * tree-ssa-threadupdate.cc (fwd_jt_path_registry::update_cfg): Also verify we can copy EDGE_COPY_SRC_JOINER_BLOCK. * gcc.dg/torture/pr106497.c: New testcase.