From 2ae3e919c37733648d85a31ebdd835c0ece0c60b Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Fri, 12 Aug 2011 12:34:09 +0200 Subject: [PATCH] cleanup Removes obsolete debug output and confusing comments --- ir/opt/combo.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ir/opt/combo.c b/ir/opt/combo.c index 903f875db..66e77693e 100644 --- a/ir/opt/combo.c +++ b/ir/opt/combo.c @@ -3029,16 +3029,9 @@ static void apply_cf(ir_node *block, void *ctx) } } - /* the EndBlock is always reachable even if the analysis - finds out the opposite :-) */ - if (block != get_irg_end_block(current_ir_graph)) { - /* mark dead blocks */ - //set_Block_dead(block); - //ir_graph *irg = get_irn_irg(block); - //exchange(block, get_irg_bad(irg)); - DB((dbg, LEVEL_1, "Removing dead %+F\n", block)); - } else { - /* the endblock is unreachable */ + if (block == get_irg_end_block(current_ir_graph)) { + /* Analysis found out that the end block is unreachable, + * hence we remove all its control flow predecessors. */ set_irn_in(block, 0, NULL); } return; -- 2.20.1