rbitset: Let rbitset_alloca() return the new raw bitset.
[libfirm] / ir / be / bechordal.c
index 18039e5..54e59b1 100644 (file)
@@ -78,7 +78,7 @@ static void pair_up_operands(be_chordal_env_t const *const env, be_insn_t *const
                be_operand_t *const out_op          = &insn->ops[j];
                for (int i = insn->use_start; i < insn->n_ops; ++i) {
                        be_operand_t *const op = &insn->ops[i];
-                       if (op->partner || be_values_interfere(lv, op->irn, op->carrier))
+                       if (op->partner || be_values_interfere(lv, insn->irn, op->carrier))
                                continue;
 
                        bitset_copy(bs, op->regs);
@@ -118,7 +118,7 @@ static void handle_constraints(be_chordal_env_t *const env, ir_node *const irn)
 
        /* Perms inserted before the constraint handling phase are considered to be
         * correctly precolored. These Perms arise during the ABI handling phase. */
-       if (!insn->has_constraints || is_Phi(irn))
+       if (!insn || is_Phi(irn))
                goto end;
 
        /* Prepare the constraint handling of this node.
@@ -368,13 +368,6 @@ static void be_ra_chordal_color(be_chordal_env_t *const chordal_env)
        be_assure_live_sets(irg);
        assure_doms(irg);
 
-       be_timer_push(T_SPLIT);
-       if (chordal_env->opts->dump_flags & BE_CH_DUMP_SPLIT) {
-               snprintf(buf, sizeof(buf), "%s-split", chordal_env->cls->name);
-               dump_ir_graph(irg, buf);
-       }
-       be_timer_pop(T_SPLIT);
-
        be_timer_push(T_CONSTR);
 
        /* Handle register targeting constraints */