From: Matthias Braun Date: Mon, 2 Apr 2007 14:22:47 +0000 (+0000) Subject: in the backend we can have arbitrary nodes in the startblock X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=bdbb9612fd21ab290784985bc872d4d82ba43739;p=libfirm in the backend we can have arbitrary nodes in the startblock [r12626] --- diff --git a/ir/ir/irgopt.c b/ir/ir/irgopt.c index 4f9241789..928ad0546 100644 --- a/ir/ir/irgopt.c +++ b/ir/ir/irgopt.c @@ -1753,7 +1753,8 @@ place_floats_early(ir_node *n, waitq *worklist) depth = get_Block_dom_depth(pred_block); } /* Avoid that the node is placed in the Start block */ - if ((depth == 1) && (get_Block_dom_depth(get_irn_n(n, -1)) > 1)) { + if ((depth == 1) && (get_Block_dom_depth(get_irn_n(n, -1)) > 1) + && get_irg_phase_state(current_ir_graph) != phase_backend) { b = get_Block_cfg_out(get_irg_start_block(current_ir_graph), 0); assert(b != get_irg_start_block(current_ir_graph)); depth = 2;