]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/95133 - avoid abnormal edges in path splitting
authorRichard Biener <rguenther@suse.de>
Fri, 15 May 2020 07:38:54 +0000 (09:38 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 23 Jun 2020 11:05:38 +0000 (13:05 +0200)
commit1d93c1bdbb1fb59e56f115601c792fa539e8deb5
treed1dd34a89eb98b7f86dcb4c3114b44e333248661
parentfe19d514ae915163b49fa344703ecfa1778a44d8
tree-optimization/95133 - avoid abnormal edges in path splitting

When path splitting tries to detect a CFG diamond make sure it
is composed of normal (non-EH, not abnormal) edges.  Otherwise
CFG manipulation later may fail.

2020-05-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95133
* gimple-ssa-split-paths.c
(find_block_to_duplicate_for_splitting_paths): Check for
normal edges.

* gcc.dg/pr95133.c: New testcase.
gcc/gimple-ssa-split-paths.c
gcc/testsuite/gcc.dg/pr95133.c [new file with mode: 0644]