Remove the unused parameter const arch_env_t *arch_env from be_liveness_transfer().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 19:14:39 +0000 (19:14 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 19:14:39 +0000 (19:14 +0000)
[r22716]

ir/be/belive.c
ir/be/belive.h
ir/be/beloopana.c
ir/be/bestat.c
ir/be/beverify.c

index 460646e..523b81f 100644 (file)
@@ -790,12 +790,10 @@ int be_check_dominance(ir_graph *irg)
        return !problem_found;
 }
 
-void be_liveness_transfer(const arch_env_t *arch_env,
-                          const arch_register_class_t *cls,
+void be_liveness_transfer(const arch_register_class_t *cls,
                           ir_node *node, ir_nodeset_t *nodeset)
 {
        int i, arity;
-       (void)arch_env; // TODO remove parameter
 
        /* You should better break out of your loop when hitting the first phi
         * function. */
@@ -861,7 +859,7 @@ void be_liveness_nodes_live_at(const be_lv_t *lv, const arch_env_t *arch_env,
                if(irn == pos)
                        return;
 
-               be_liveness_transfer(arch_env, cls, irn, live);
+               be_liveness_transfer(cls, irn, live);
        }
 }
 
@@ -876,7 +874,7 @@ void be_liveness_nodes_live_at_input(const be_lv_t *lv,
        assert(lv->nodes && "live sets must be computed");
        be_liveness_end_of_block(lv, arch_env, cls, bl, live);
        sched_foreach_reverse(bl, irn) {
-               be_liveness_transfer(arch_env, cls, irn, live);
+               be_liveness_transfer(cls, irn, live);
                if(irn == pos)
                        return;
        }
index e3f95de..9c1a9c2 100644 (file)
@@ -147,15 +147,13 @@ int be_check_dominance(ir_graph *irg);
  * The liveness transfer function.
  * Updates a live set over a single step from a given node to its predecessor.
  * Everything defined at the node is removed from the set, the uses of the node get inserted.
- * @param arch_env The architecture environment.
  * @param cls      The register class to consider.
  * @param irn      The node at which liveness should be computed.
  * @param live     The set of nodes live before @p irn. This set gets modified by updating it to
  *                 the nodes live after irn.
  * @return live.
  */
-void be_liveness_transfer(const arch_env_t *arch_env,
-                          const arch_register_class_t *cls, ir_node *node,
+void be_liveness_transfer(const arch_register_class_t *cls, ir_node *node,
                           ir_nodeset_t *nodeset);
 
 /**
index 160412e..194006d 100644 (file)
@@ -95,7 +95,7 @@ static unsigned be_compute_block_pressure(be_loopana_t *loop_ana,
                if (is_Phi(irn))
                        break;
 
-               be_liveness_transfer(aenv, cls, irn, &live_nodes);
+               be_liveness_transfer(cls, irn, &live_nodes);
                cnt        = ir_nodeset_size(&live_nodes);
                max_live   = MAX(cnt, max_live);
        }
index 03a16a6..4d31994 100644 (file)
@@ -80,7 +80,7 @@ static void check_reg_pressure_class(pressure_walker_env_t *env,
                if(is_Phi(irn))
                        break;
 
-               be_liveness_transfer(aenv, cls, irn, &live_nodes);
+               be_liveness_transfer(cls, irn, &live_nodes);
                cnt      = ir_nodeset_size(&live_nodes);
                max_live = cnt < max_live ? max_live : cnt;
                env->regpressure += cnt;
index 38ff9e9..fac8bc4 100644 (file)
@@ -102,7 +102,7 @@ static void verify_liveness_walker(ir_node *block, void *data) {
                        break;
 
                // print_living_values(stderr, &live_nodes);
-               be_liveness_transfer(env->arch_env, env->cls, irn, &live_nodes);
+               be_liveness_transfer(env->cls, irn, &live_nodes);
 
                pressure = ir_nodeset_size(&live_nodes);