From: Devang Patel Date: Wed, 2 Mar 2005 20:07:45 +0000 (-0800) Subject: Undo PR tree-optimization/18815 fix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2af51b8831e89cbec17872e7ac4cb073aa1fb371;p=gcc.git Undo PR tree-optimization/18815 fix. From-SVN: r95803 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4aced01cdd..22bb0a1b0bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-03-02 Devang Patel + + Undo PR tree-optimization/18815 fix. + 2005-03-02 Devang Patel PR tree-optimization/18815 diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index ce66e2a7bbc..bb832d24616 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -905,21 +905,10 @@ combine_blocks (struct loop *loop) continue; /* It is time to remove this basic block. First remove edges. */ - while (EDGE_COUNT (bb->preds) > 0) - remove_edge (EDGE_PRED (bb, 0)); - - /* This is loop latch and loop does not have exit then do not - delete this basic block. Just remove its PREDS and reconnect - loop->header and loop->latch blocks. */ - if (bb == loop->latch && loop->num_exits == 0) - { - make_edge (loop->header, loop->latch, EDGE_FALLTHRU); - set_immediate_dominator (CDI_DOMINATORS, loop->latch, loop->header); - continue; - } - while (EDGE_COUNT (bb->succs) > 0) remove_edge (EDGE_SUCC (bb, 0)); + while (EDGE_COUNT (bb->preds) > 0) + remove_edge (EDGE_PRED (bb, 0)); /* Remove labels and make stmts member of loop->header. */ for (bsi = bsi_start (bb); !bsi_end_p (bsi); )