beirgmod: Do not set registers for the Perm results in insert_Perm_before() just...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 25 Nov 2012 08:38:39 +0000 (09:38 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 25 Nov 2012 08:38:39 +0000 (09:38 +0100)
ir/be/bechordal_common.c
ir/be/beirgmod.c

index d6d9fe8..bc1cc2d 100644 (file)
@@ -221,10 +221,6 @@ ir_node *pre_process_constraints(be_chordal_env_t *env, be_insn_t **the_insn)
                return NULL;
 
        stat_ev_int("constr_perm", get_irn_arity(perm));
-       foreach_out_edge(perm, edge) {
-               ir_node *proj = get_edge_src_irn(edge);
-               arch_set_irn_register(proj, NULL);
-       }
 
        /*
         * We also have to re-build the insn since the input operands are now the Projs of
index d3ac269..2813339 100644 (file)
@@ -127,12 +127,10 @@ ir_node *insert_Perm_before(ir_graph *irg, const arch_register_class_t *cls,
 
        for (i = 0; i < n; ++i) {
                ir_node *perm_op = get_irn_n(perm, i);
-               const arch_register_t *reg = arch_get_irn_register(perm_op);
                be_ssa_construction_env_t senv;
 
                ir_mode *mode = get_irn_mode(perm_op);
                ir_node *proj = new_r_Proj(perm, mode, i);
-               arch_set_irn_register(proj, reg);
 
                be_ssa_construction_init(&senv, irg);
                be_ssa_construction_add_copy(&senv, perm_op);