tree-optimization/107301 - check if we can duplicate block before doing so
authorRichard Biener <rguenther@suse.de>
Tue, 18 Oct 2022 07:38:03 +0000 (09:38 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 18 Oct 2022 07:39:00 +0000 (09:39 +0200)
commit5ad3cc1ecc3c7c61d5e319f74cb7287fb80944fd
treebe796c6282ef5d5de6f0c74079f4ce79399f2382
parent35106383c0995682f3bef20f745285f791796473
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.
gcc/gimple-ssa-isolate-paths.cc
gcc/testsuite/gcc.dg/torture/pr107301.c [new file with mode: 0644]