From e6ab6b4648deecc230e67727f4d603dd353dfe2d Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 11 Oct 2008 21:19:02 +0000 Subject: [PATCH] Remove the unused parameter const copy_opt_t *co from co_is_optimizable_root() and make the function static. [r22766] --- ir/be/becopyopt.c | 10 +++++++--- ir/be/becopyopt.h | 7 ------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/ir/be/becopyopt.c b/ir/be/becopyopt.c index c3360ca3b..cd3347441 100644 --- a/ir/be/becopyopt.c +++ b/ir/be/becopyopt.c @@ -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 */ diff --git a/ir/be/becopyopt.h b/ir/be/becopyopt.h index ddf14366e..471fccdd7 100644 --- a/ir/be/becopyopt.h +++ b/ir/be/becopyopt.h @@ -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. -- 2.20.1