Remove the unused parameter const copy_opt_t *co from co_is_optimizable_root() and...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 21:19:02 +0000 (21:19 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 21:19:02 +0000 (21:19 +0000)
[r22766]

ir/be/becopyopt.c
ir/be/becopyopt.h

index c3360ca..cd33474 100644 (file)
@@ -213,10 +213,14 @@ void free_copy_opt(copy_opt_t *co) {
        free(co);
 }
 
-int co_is_optimizable_root(const copy_opt_t *co, ir_node *irn) {
+/**
+ * Checks if a node is optimizable, viz. has something to do with coalescing
+ * @param irn  The irn to check
+ */
+static int co_is_optimizable_root(ir_node *irn)
+{
        const arch_register_req_t *req;
        const arch_register_t *reg;
-       (void)co; // TODO remove parameter
 
        if (arch_irn_is(irn, ignore))
                return 0;
@@ -378,7 +382,7 @@ static void co_collect_units(ir_node *irn, void *env) {
 
        if (!is_curr_reg_class(co, irn))
                return;
-       if (!co_is_optimizable_root(co, irn))
+       if (!co_is_optimizable_root(irn))
                return;
 
        /* Init a new unit */
index ddf1436..471fccd 100644 (file)
@@ -81,13 +81,6 @@ copy_opt_t *new_copy_opt(be_chordal_env_t *chordal_env, cost_fct_t get_costs);
  */
 void free_copy_opt(copy_opt_t *co);
 
-/**
- * Checks if a node is optimizable, viz. has something to do with coalescing
- * @param arch The architecture environment
- * @param irn  The irn to check
- */
-int co_is_optimizable_root(const copy_opt_t *co, ir_node *irn);
-
 /**
  * Computes the costs of a copy according to loop depth
  * @param co   The copy opt object.