Commit 819977d4 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

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

[r22681]
parent 85ff0214
...@@ -114,10 +114,9 @@ int arch_get_sp_bias(ir_node *irn) ...@@ -114,10 +114,9 @@ int arch_get_sp_bias(ir_node *irn)
return ops->get_sp_bias(irn); return ops->get_sp_bias(irn);
} }
arch_inverse_t *arch_get_inverse(const arch_env_t *env, const ir_node *irn, int i, arch_inverse_t *inverse, struct obstack *obstack) arch_inverse_t *arch_get_inverse(const ir_node *irn, int i, arch_inverse_t *inverse, struct obstack *obstack)
{ {
const arch_irn_ops_t *ops = get_irn_ops(irn); const arch_irn_ops_t *ops = get_irn_ops(irn);
(void)env; // TODO remove parameter
if(ops->get_inverse) { if(ops->get_inverse) {
return ops->get_inverse(irn, i, inverse, obstack); return ops->get_inverse(irn, i, inverse, obstack);
......
...@@ -140,7 +140,7 @@ void arch_set_frame_entity(ir_node *irn, ir_entity *ent); ...@@ -140,7 +140,7 @@ void arch_set_frame_entity(ir_node *irn, ir_entity *ent);
int arch_get_sp_bias(ir_node *irn); int arch_get_sp_bias(ir_node *irn);
extern int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn); extern int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn);
extern arch_inverse_t *arch_get_inverse(const arch_env_t *env, const ir_node *irn, int i, arch_inverse_t *inverse, struct obstack *obstack); arch_inverse_t *arch_get_inverse(const ir_node *irn, int i, arch_inverse_t *inverse, struct obstack *obstack);
extern int arch_possible_memory_operand(const arch_env_t *env, const ir_node *irn, unsigned int i); extern int arch_possible_memory_operand(const arch_env_t *env, const ir_node *irn, unsigned int i);
extern void arch_perform_memory_operand(const arch_env_t *env, ir_node *irn, ir_node *spill, unsigned int i); extern void arch_perform_memory_operand(const arch_env_t *env, ir_node *irn, ir_node *spill, unsigned int i);
......
...@@ -534,7 +534,7 @@ get_remat_from_op(spill_ilp_t * si, const ir_node * dest_value, const ir_node * ...@@ -534,7 +534,7 @@ get_remat_from_op(spill_ilp_t * si, const ir_node * dest_value, const ir_node *
DBG((si->dbg, LEVEL_5, "\t requesting inverse op for argument %d of op %+F\n", n, op)); DBG((si->dbg, LEVEL_5, "\t requesting inverse op for argument %d of op %+F\n", n, op));
/* else ask the backend to give an inverse op */ /* else ask the backend to give an inverse op */
if(arch_get_inverse(si->birg->main_env->arch_env, op, n, &inverse, si->obst)) { if(arch_get_inverse(op, n, &inverse, si->obst)) {
int i; int i;
DBG((si->dbg, LEVEL_4, "\t backend gave us an inverse op with %d nodes and cost %d\n", inverse.n, inverse.costs)); DBG((si->dbg, LEVEL_4, "\t backend gave us an inverse op with %d nodes and cost %d\n", inverse.n, inverse.costs));
......
Supports Markdown
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