sel-sched: skip outer loop in get_all_loop_exits (PR 84206)
authorAndrey Belevantsev <abel@ispras.ru>
Tue, 2 Apr 2019 15:45:57 +0000 (18:45 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Tue, 2 Apr 2019 15:45:57 +0000 (18:45 +0300)
commit6fb8055edde15e304f77fbac2c2f317a5a44d6e9
treea5f041be88763f9bc102337463446087d3e23094
parent7dc69ec076bf4baa128a1ee660014bfefe3828df
sel-sched: skip outer loop in get_all_loop_exits (PR 84206)

2019-04-02  Andrey Belevantsev  <abel@ispras.ru>

PR rtl-optimization/84206
* sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
iterating over loop headers.

* gcc.dg/pr84206.c: New test.

From-SVN: r270096
gcc/ChangeLog
gcc/sel-sched-ir.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84206.c [new file with mode: 0644]