re PR rtl-optimization/90026 (ICE: verify_flow_info failed (error: missing barrier...
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Apr 2019 07:27:25 +0000 (09:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Apr 2019 07:27:25 +0000 (09:27 +0200)
commitc758576accc3eef33c31766352453b0ad1953569
tree09b36de5d1d2ef17d03c90b6b08477d3813c0852
parentdf63d1b7f755a38d3f762899c91d48f893091088
re PR rtl-optimization/90026 (ICE: verify_flow_info failed (error: missing barrier after block 2))

PR rtl-optimization/90026
* cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
successors, look for BARRIERs inside of the whole BB_FOOTER chain
rather than just at the start of it.  If e->src BB_FOOTER is not NULL
in cfglayout mode, use emit_barrier_after_bb.

* g++.dg/opt/pr90026.C: New test.

From-SVN: r270304
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr90026.C [new file with mode: 0644]