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

2019-02-28 Thread Eric Botcazou
> 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? > > *

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

2019-02-28 Thread Alexander Monakov
On Thu, 28 Feb 2019, Alexander Monakov wrote: > Hi, > > in PR 85899 an assert is failing in find_fallthru_edge_from because the code > tries to verify the invariant e->dest == e->src->next_bb for a fallthru edge > and does not anticipate that it will fail if e->dest is the exit block (bb 1): >

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

2019-02-28 Thread Alexander Monakov
Hi, in PR 85899 an assert is failing in find_fallthru_edge_from because the code tries to verify the invariant e->dest == e->src->next_bb for a fallthru edge and does not anticipate that it will fail if e->dest is the exit block (bb 1): in this case next_bb is fairly arbitrary (it's just the next