cleanup: Remove unnecessary #include from becopyopt.h.
[libfirm] / ir / be / bespill.c
index 07bafe2..f56b745 100644 (file)
@@ -22,7 +22,6 @@
  * @brief       Spill module selection; Preparation steps
  * @author      Matthias Braun
  * @date        29.09.2005
- * @version     $Id$
  */
 #include "config.h"
 
@@ -30,7 +29,7 @@
 #include "debug.h"
 #include "iredges_t.h"
 #include "raw_bitset.h"
-#include "statev.h"
+#include "statev_t.h"
 #include "irgwalk.h"
 
 #include "bespill.h"
@@ -64,7 +63,6 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
        unsigned *tmp        = NULL;
        unsigned *def_constr = NULL;
        int       arity      = get_irn_arity(node);
-       ir_node  *def;
 
        int i, i2;
 
@@ -154,6 +152,7 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
 
        /* collect all registers occurring in out constraints. */
        be_foreach_definition(node, cls, def,
+               (void)def;
                if (! (req_->type & arch_register_req_type_limited))
                        continue;
                if (def_constr == NULL) {
@@ -222,7 +221,6 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
 static void pre_spill_prepare_constr_walker(ir_node *block, void *data)
 {
        be_pre_spill_env_t *env = (be_pre_spill_env_t*)data;
-       ir_node *node;
        sched_foreach(block, node) {
                prepare_constr_insn(env, node);
        }
@@ -236,7 +234,7 @@ void be_pre_spill_prepare_constr(ir_graph *irg,
        env.irg = irg;
        env.cls = cls;
 
-       be_assure_liveness(irg);
+       be_assure_live_sets(irg);
 
        irg_block_walk_graph(irg, pre_spill_prepare_constr_walker, NULL, &env);
 }