summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestate.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-10-06 10:40:41 +0200
committerMatthias Braun <matze@braunis.de>2010-10-06 10:40:41 +0200
commite36a82c5aafb53c1b28723c88db898f8ccc3e6bb (patch)
treeee0dd2b4b89b0f7fd38d57d994e50ec75908dcdc /ir/be/bestate.c
parent842280b66974a618f663838a489fd5059300e3b0 (diff)
cleanup ircons code; add current_ir_graph independent construction bits; new_ir_graph does not set current_ir_graph anymore
[r28042]
Diffstat (limited to 'ir/be/bestate.c')
-rw-r--r--ir/be/bestate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/be/bestate.c b/ir/be/bestate.c
index e2ea5d0..1967fb5 100644
--- a/ir/be/bestate.c
+++ b/ir/be/bestate.c
@@ -161,6 +161,7 @@ static void spill_phi(minibelady_env_t *env, ir_node *phi)
ir_node *block = get_nodes_block(phi);
int arity = get_irn_arity(phi);
ir_node **in = ALLOCAN(ir_node*, arity);
+ ir_node *dummy = new_r_Dummy(irg, mode_M);
ir_node *spill_to_kill = NULL;
spill_info_t *spill_info;
int i;
@@ -175,7 +176,7 @@ static void spill_phi(minibelady_env_t *env, ir_node *phi)
/* create a new phi-M with bad preds */
for (i = 0; i < arity; ++i) {
- in[i] = new_r_Unknown(irg, mode_M);
+ in[i] = dummy;
}
DBG((dbg, LEVEL_2, "\tcreate Phi-M for %+F\n", phi));