Remove the unused parameter const arch_env_t *env from arch_get_op_estimated_cost().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 16:11:27 +0000 (16:11 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 16:11:27 +0000 (16:11 +0000)
[r22684]

ir/be/bearch.c
ir/be/bearch.h
ir/be/bespill.c
ir/be/bestat.c

index fafb800..4c14c45 100644 (file)
@@ -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);
index c8dce80..a30bd57 100644 (file)
@@ -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);
index 3676e91..f13938d 100644 (file)
@@ -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;
index 1c3d9dd..df3a5c6 100644 (file)
@@ -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);