use unknowns instead of Bads while constructing phis
authorMatthias Braun <matze@braunis.de>
Sat, 6 Oct 2007 17:05:20 +0000 (17:05 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 6 Oct 2007 17:05:20 +0000 (17:05 +0000)
[r16106]

ir/be/bespill.c
ir/be/bestate.c

index b7a4394..4cc4ad0 100644 (file)
@@ -468,7 +468,7 @@ void spill_phi(spill_env_t *env, spill_info_t *spillinfo)
        /* build a new PhiM */
        ins = alloca(sizeof(ir_node*) * arity);
        for(i = 0; i < arity; ++i) {
-               ins[i] = get_irg_bad(env->irg);
+               ins[i] = new_r_Unknown(env->irg, mode_M);
        }
        assert(!get_opt_cse());
        spillinfo->spill = new_r_Phi(env->irg, block, arity, ins, mode_M);
index e987288..a05ca91 100644 (file)
@@ -186,7 +186,7 @@ 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_Bad(irg);
+               in[i] = new_r_Unknown(irg, mode_M);
        }
 
        DBG((dbg, LEVEL_2, "\tcreate Phi-M for %+F\n", phi));