Commit 9eb02a69 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the unused parameter const arch_env_t *env from arch_get_op_estimated_cost().

[r22684]
parent 6d64da24
......@@ -147,10 +147,9 @@ void arch_perform_memory_operand(ir_node *irn, ir_node *spill, unsigned int i)
}
}
int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn)
int arch_get_op_estimated_cost(const ir_node *irn)
{
const arch_irn_ops_t *ops = get_irn_ops(irn);
(void)env; // TODO remove parameter
if(ops->get_op_estimated_cost) {
return ops->get_op_estimated_cost(irn);
......
......@@ -139,7 +139,7 @@ ir_entity *arch_get_frame_entity(const ir_node *irn);
void arch_set_frame_entity(ir_node *irn, ir_entity *ent);
int arch_get_sp_bias(ir_node *irn);
extern int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn);
int arch_get_op_estimated_cost(const ir_node *irn);
arch_inverse_t *arch_get_inverse(const ir_node *irn, int i, arch_inverse_t *inverse, struct obstack *obstack);
int arch_possible_memory_operand(const ir_node *irn, unsigned int i);
void arch_perform_memory_operand(ir_node *irn, ir_node *spill, unsigned int i);
......
......@@ -640,7 +640,7 @@ static int check_remat_conditions_costs(spill_env_t *env,
if(be_is_Reload(spilled)) {
costs += 2;
} else {
costs += arch_get_op_estimated_cost(env->arch_env, spilled);
costs += arch_get_op_estimated_cost(spilled);
}
if(parentcosts + costs >= env->reload_cost + env->spill_cost) {
return REMAT_COST_INFINITE;
......
......@@ -137,7 +137,7 @@ static void estimate_block_costs(ir_node *block, void *data)
double costs = 0.0;
sched_foreach(block, node) {
costs += arch_get_op_estimated_cost(env->arch_env, node);
costs += arch_get_op_estimated_cost(node);
}
env->costs += costs * get_block_execfreq(env->execfreqs, block);
......
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