haifa-sched: handle fallthru edge to EXIT block (PR 85899)
authorAlexander Monakov <amonakov@ispras.ru>
Fri, 1 Mar 2019 16:18:04 +0000 (19:18 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Fri, 1 Mar 2019 16:18:04 +0000 (19:18 +0300)
commit5055060066723e409519376c8e571e51cff1eb30
tree26c4529ec9d41d81016662facfead448a1370c16
parent6fe7ce18d0173b16d80f28c29ef7540725e069ea
haifa-sched: handle fallthru edge to EXIT block (PR 85899)

PR rtl-optimization/85899
* haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
fallthru edges leading to the exit block.

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

From-SVN: r269319
gcc/ChangeLog
gcc/haifa-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr85899.c [new file with mode: 0644]