From 318579c4c6d8d3c542a986419123958703ad258b Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Mon, 16 May 2011 14:39:16 +0200 Subject: [PATCH] Code reuse --- ir/ir/iropt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index ba62501a6..a17533be8 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -6131,9 +6131,9 @@ ir_node *identify_remember(ir_node *n) if (get_opt_global_cse()) { /* do not remember unreachable nodes */ - if (get_irg_dom_state(irg) == dom_consistent && !is_Block(n)) { + if (!is_Block(n)) { ir_node *block = get_nodes_block(n); - if (get_Block_dom_depth(block) < 0) { + if (is_block_unreachable(block)) { return n; } } -- 2.20.1