diff options
author | dpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-02 20:07:45 +0000 |
---|---|---|
committer | dpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-02 20:07:45 +0000 |
commit | adc4bcdbbdddb2d68e0c770f94a2bf0c4c9f8c12 (patch) | |
tree | 60afdd71e719f885c73e628d01c667e2220e07ab /gcc/tree-if-conv.c | |
parent | 9a931ab2446725000117c6c7566aac2f9d4cf2db (diff) | |
download | gcc-adc4bcdbbdddb2d68e0c770f94a2bf0c4c9f8c12.tar.gz |
Undo PR tree-optimization/18815 fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95803 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r-- | gcc/tree-if-conv.c | 15 |
1 files changed, 2 insertions, 13 deletions
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); ) |