[PATCH] haifa-sched: handle fallthru edge to EXIT block (PR 85899)

Eric Botcazou ebotcazou@adacore.com
Thu Feb 28 19:33:00 GMT 2019


> So it looks to me that the assert has to allow this.  I've bootstrapped the
> following (not that it matters much as it simply relaxes the assert) and
> verified it fixes the testcase.

Yes, fallthrough edges to the exit block exist in RTL, see could_fall_through.

> OK for trunk?
> 
> 	* 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.

OK, thanks.

-- 
Eric Botcazou



More information about the Gcc-patches mailing list