diff options
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r-- | gcc/bb-reorder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 3647ad6ec4b..5434e676813 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -158,7 +158,7 @@ make_reorder_chain_1 (bb, prev) restart: RBI (prev)->next = bb; - if (rtl_dump_file && prev->index + 1 != bb->index) + if (rtl_dump_file && prev->next_bb != bb) fprintf (rtl_dump_file, "Reordering block %d after %d\n", bb->index, prev->index); } @@ -214,7 +214,7 @@ make_reorder_chain_1 (bb, prev) if (! next) { for (e = bb->succ; e ; e = e->succ_next) - if (e->dest->index == bb->index + 1) + if (e->dest == bb->next_bb) { if ((e->flags & EDGE_FALLTHRU) || (e->dest->succ |