]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
committerRichard Biener <rguenther@suse.de>
Tue, 4 May 2021 12:13:18 +0000 (14:13 +0200)
commita9ac51b5497c92b016bd8d3f7c908f246dbd8f35
tree6e410e1dd262af071c60bcea481bd2be6fdd7577
parentb7bdb6462bb171102bada0579981e2bdbe813b21
haifa-sched: handle fallthru edge to EXIT block (PR 85899)

2019-03-01  Alexander Monakov  <amonakov@ispras.ru>

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.

(cherry picked from commit 5055060066723e409519376c8e571e51cff1eb30)
gcc/haifa-sched.c
gcc/testsuite/gcc.dg/pr85899.c [new file with mode: 0644]