beinfo: Remove declaration of the non-existent function be_info_duplicate().
[libfirm] / ir / be / bechordal.c
index 980675a..d2b414c 100644 (file)
@@ -66,8 +66,6 @@
 
 DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
 
-#define DUMP_INTERVALS
-
 typedef struct be_chordal_alloc_env_t {
        be_chordal_env_t *chordal_env;
 
@@ -75,8 +73,6 @@ typedef struct be_chordal_alloc_env_t {
        bitset_t *live;        /**< A liveness bitset. */
        bitset_t *tmp_colors;  /**< An auxiliary bitset which is as long as the number of colors in the class. */
        bitset_t *colors;      /**< The color mask. */
-       bitset_t *in_colors;   /**< Colors used by live in values. */
-       int colors_n;          /**< The number of colors. */
 } be_chordal_alloc_env_t;
 
 static int get_next_free_reg(const be_chordal_alloc_env_t *alloc_env, bitset_t *colors)
@@ -385,13 +381,11 @@ static void assign(ir_node *block, void *env_ptr)
        be_chordal_env_t *env       = alloc_env->chordal_env;
        bitset_t *live              = alloc_env->live;
        bitset_t *colors            = alloc_env->colors;
-       bitset_t *in_colors         = alloc_env->in_colors;
        struct list_head *head      = get_block_border_head(env, block);
        be_lv_t *lv                 = be_get_irg_liveness(env->irg);
 
        bitset_clear_all(colors);
        bitset_clear_all(live);
-       bitset_clear_all(in_colors);
 
        DBG((dbg, LEVEL_4, "Assigning colors for block %+F\n", block));
        DBG((dbg, LEVEL_4, "\tusedef chain for block\n"));
@@ -406,7 +400,7 @@ static void assign(ir_node *block, void *env_ptr)
         * allocated before), we have to mark their colors as used also.
         */
        be_lv_foreach(lv, block, be_lv_state_in, irn) {
-               if (has_reg_class(env, irn)) {
+               if (arch_irn_consider_in_reg_alloc(env->cls, irn)) {
                        const arch_register_t *reg = arch_get_irn_register(irn);
 
                        assert(reg && "Node must have been assigned a register");
@@ -415,7 +409,6 @@ static void assign(ir_node *block, void *env_ptr)
                        /* Mark the color of the live in value as used. */
                        int const col = reg->index;
                        bitset_set(colors, col);
-                       bitset_set(in_colors, col);
 
                        /* Mark the value live in. */
                        bitset_set(live, get_irn_idx(irn));
@@ -482,10 +475,8 @@ static void be_ra_chordal_color(be_chordal_env_t *const chordal_env)
        assure_doms(irg);
 
        env.chordal_env   = chordal_env;
-       env.colors_n      = colors_n;
        env.colors        = bitset_alloca(colors_n);
        env.tmp_colors    = bitset_alloca(colors_n);
-       env.in_colors     = bitset_alloca(colors_n);
        env.pre_colored   = pset_new_ptr_default();
 
        be_timer_push(T_SPLIT);