diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2019-03-01 19:18:04 +0300 |
---|---|---|
committer | Alexander Monakov <amonakov@gcc.gnu.org> | 2019-03-01 19:18:04 +0300 |
commit | 5055060066723e409519376c8e571e51cff1eb30 (patch) | |
tree | 26c4529ec9d41d81016662facfead448a1370c16 /gcc/haifa-sched.c | |
parent | 6fe7ce18d0173b16d80f28c29ef7540725e069ea (diff) | |
download | gcc-5055060066723e409519376c8e571e51cff1eb30.zip gcc-5055060066723e409519376c8e571e51cff1eb30.tar.gz gcc-5055060066723e409519376c8e571e51cff1eb30.tar.bz2 |
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
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 72178b6..5025aae 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -8082,7 +8082,7 @@ find_fallthru_edge_from (basic_block pred) if (e) { - gcc_assert (e->dest == succ); + gcc_assert (e->dest == succ || e->dest->index == EXIT_BLOCK); return e; } } |