Commit beffbfdb authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the unused parameter const arch_env_t *arch_env from be_liveness_transfer().

[r22716]
parent 69b99cb1
......@@ -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;
}
......
......@@ -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);
/**
......
......@@ -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);
}
......
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment