]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR tree-optimization/87895 (ICE in purge_dead_edges, at cfgrtl.c:3246)
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Aug 2019 11:12:23 +0000 (13:12 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Aug 2019 11:12:23 +0000 (13:12 +0200)
commit5ba94a17e7b5934e179dca7b408a5cd92f0bc0cd
treedc9a50eff06b908b49c3c95cabd8d9440d1da7f0
parentd690951022038a03d3e0da6d783efcd7e4c601b8
backport: re PR tree-optimization/87895 (ICE in purge_dead_edges, at cfgrtl.c:3246)

Backported from mainline
2018-11-20  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/87895
* omp-simd-clone.c (ipa_simd_modify_function_body): When removing
or replacing GIMPLE_RETURN, set EDGE_FALLTHRU on the edge to EXIT.
(simd_clone_adjust): Don't set EDGE_FALLTHRU here. In a loop that
redirects edges to EXIT to edges to incr_bb, iterate while EXIT
has any preds and always use EDGE_PRED (, 0).

* gcc.dg/gomp/pr87895-1.c: New test.
* gcc.dg/gomp/pr87895-2.c: New test.
* gcc.dg/gomp/pr87895-3.c: New test.

From-SVN: r275070
gcc/ChangeLog
gcc/omp-simd-clone.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr87895-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr87895-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr87895-3.c [new file with mode: 0644]