From 6e6376dcb59171072a9a284086199fe5ac994885 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 11 Oct 2008 19:08:53 +0000 Subject: [PATCH] Remove the unused parameter const arch_env_t *arch_env from x87_simulate_graph(). [r22713] --- ir/be/ia32/bearch_ia32.c | 2 +- ir/be/ia32/ia32_x87.c | 11 +---------- ir/be/ia32/ia32_x87.h | 5 ++--- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/ir/be/ia32/bearch_ia32.c b/ir/be/ia32/bearch_ia32.c index 166090698..00b8fc039 100644 --- a/ir/be/ia32/bearch_ia32.c +++ b/ir/be/ia32/bearch_ia32.c @@ -1519,7 +1519,7 @@ static void ia32_finish(void *self) { /* we might have to rewrite x87 virtual registers */ if (cg->do_x87_sim) { - x87_simulate_graph(cg->arch_env, cg->birg); + x87_simulate_graph(cg->birg); } /* do peephole optimisations */ diff --git a/ir/be/ia32/ia32_x87.c b/ir/be/ia32/ia32_x87.c index ba381cf2d..b4f93aa2f 100644 --- a/ir/be/ia32/ia32_x87.c +++ b/ir/be/ia32/ia32_x87.c @@ -2432,21 +2432,12 @@ static void update_liveness_walker(ir_node *block, void *data) update_liveness(sim, block); } /* update_liveness_walker */ -/** - * Run a simulation and fix all virtual instructions for a graph. - * - * @param env the architecture environment - * @param irg the current graph - * - * Needs a block-schedule. - */ -void x87_simulate_graph(const arch_env_t *arch_env, be_irg_t *birg) +void x87_simulate_graph(be_irg_t *birg) { ir_node *block, *start_block; blk_state *bl_state; x87_simulator sim; ir_graph *irg = be_get_birg_irg(birg); - (void)arch_env; /* create the simulator */ x87_init_simulator(&sim, irg); diff --git a/ir/be/ia32/ia32_x87.h b/ir/be/ia32/ia32_x87.h index c9da0db09..44aeeb2c3 100644 --- a/ir/be/ia32/ia32_x87.h +++ b/ir/be/ia32/ia32_x87.h @@ -35,11 +35,10 @@ * Replaces all virtual floating point instructions and registers * by real ones. * - * @param env architecture environment * @param birg the graph to simulate and patch * - * Registers must be allocated. Needs a block-schedule. + * Registers must be allocated. */ -void x87_simulate_graph(const arch_env_t *env, be_irg_t *birg); +void x87_simulate_graph(be_irg_t *birg); #endif /* FIRM_BE_IA32_IA32_X87_H */ -- 2.20.1