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

ir/be/bearch.c
ir/be/bearch.h
ir/be/becopyheur.c

index ebfdc15..e26f7ef 100644 (file)
@@ -158,11 +158,10 @@ int arch_get_op_estimated_cost(const ir_node *irn)
        }
 }
 
-int arch_get_allocatable_regs(const arch_env_t *env, const ir_node *irn, int pos, bitset_t *bs)
+int arch_get_allocatable_regs(const ir_node *irn, int pos, bitset_t *bs)
 {
        const arch_irn_ops_t *ops = get_irn_ops(irn);
        const arch_register_req_t *req = ops->get_irn_reg_req(irn, pos);
-       (void)env; // TODO remove parameter
 
        if(req->type == arch_register_req_type_none) {
                bitset_clear_all(bs);
index a30bd57..0c78a46 100644 (file)
@@ -167,7 +167,6 @@ extern int arch_is_register_operand(const arch_env_t *env,
 /**
  * Get the number of allocatable registers concerning
  * a register class for an operand of a node.
- * @param env The environment.
  * @param irn The node.
  * @param pos The position of the node's operand.
  * @param bs  The bitset all allocatable registers shall be put into.
@@ -176,7 +175,7 @@ extern int arch_is_register_operand(const arch_env_t *env,
  *            has registers.
  * @return    The amount of registers allocatable for that operand.
  */
-extern int arch_get_allocatable_regs(const arch_env_t *env, const ir_node *irn, int pos, bitset_t *bs);
+int arch_get_allocatable_regs(const ir_node *irn, int pos, bitset_t *bs);
 
 /**
  * Put all registers which shall not be ignored by the register
index cef42f0..47c9495 100644 (file)
@@ -534,7 +534,6 @@ static INLINE void ou_insert_qnode(unit_t *ou, qnode_t *qn) {
 static void ou_optimize(unit_t *ou) {
        int i;
        qnode_t *curr = NULL, *tmp;
-       const arch_env_t *aenv = ou->co->aenv;
        const arch_register_class_t *cls = ou->co->cls;
        bitset_pos_t idx;
        bitset_t *pos_regs = bitset_alloca(cls->n_regs);
@@ -546,7 +545,7 @@ static void ou_optimize(unit_t *ou) {
        /* init queue */
        INIT_LIST_HEAD(&ou->queue);
 
-       arch_get_allocatable_regs(aenv, ou->nodes[0], -1, pos_regs);
+       arch_get_allocatable_regs(ou->nodes[0], -1, pos_regs);
 
        /* exclude ignore colors */
        bitset_andnot(pos_regs, ou->co->cenv->ignore_colors);