]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/106497 - more forward threader can-copy-bb
authorRichard Biener <rguenther@suse.de>
Tue, 2 Aug 2022 10:19:25 +0000 (12:19 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 2 Aug 2022 11:29:36 +0000 (13:29 +0200)
commit0f3514756e0b4d8993ee43dcd958974eb1424061
treeda9ea9303cf132fb3366aced5f89916efe01a856
parent84beef30a51988e77e9df3104ed6203756172d65
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.
gcc/testsuite/gcc.dg/torture/pr106497.c [new file with mode: 0644]
gcc/tree-ssa-threadupdate.cc