re PR tree-optimization/87693 (ICE in thread_around_empty_blocks, at tree-ssa-threade...
authorRichard Biener <rguenther@suse.de>
Tue, 23 Oct 2018 08:51:20 +0000 (08:51 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 23 Oct 2018 08:51:20 +0000 (08:51 +0000)
commita26eaf981dd83a9dc3ec7caa8d0350e1c760ee27
treef1e37a9448d0b2430add75ba6cb78f68e05f1272
parent2efade53fe39a9bd526997fb7cfe1d1d171a715d
re PR tree-optimization/87693 (ICE in thread_around_empty_blocks, at tree-ssa-threadedge.c:984)

2018-10-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/87693
* tree-ssa-threadedge.c (thread_around_empty_blocks): Handle
the case we do not find the taken edge.

* gcc.dg/torture/pr87693.c: New testcase.

From-SVN: r265413
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr87693.c [new file with mode: 0644]
gcc/tree-ssa-threadedge.c