From 7f5fdce6e97b8c30069e9620bac5ec0b7c6d934f Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 15 Oct 2008 21:39:29 +0000 Subject: [PATCH] Remove the unused before_sched callback. [r22932] --- ir/be/TEMPLATE/bearch_TEMPLATE.c | 9 --------- ir/be/arm/bearch_arm.c | 10 ---------- ir/be/bearch_t.h | 6 ------ ir/be/bemain.c | 5 ----- ir/be/ia32/bearch_ia32.c | 8 -------- ir/be/mips/bearch_mips.c | 9 --------- ir/be/ppc32/bearch_ppc32.c | 9 --------- 7 files changed, 56 deletions(-) diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE.c b/ir/be/TEMPLATE/bearch_TEMPLATE.c index 5fd675368..8be93d6f3 100644 --- a/ir/be/TEMPLATE/bearch_TEMPLATE.c +++ b/ir/be/TEMPLATE/bearch_TEMPLATE.c @@ -263,14 +263,6 @@ static void TEMPLATE_finish_irg(void *self) { } -/** - * These are some hooks which must be filled but are probably not needed. - */ -static void TEMPLATE_before_sched(void *self) { - (void) self; - /* Some stuff you need to do after scheduling but before register allocation */ -} - static void TEMPLATE_before_ra(void *self) { (void) self; /* Some stuff you need to do after scheduling but before register allocation */ @@ -308,7 +300,6 @@ static const arch_code_generator_if_t TEMPLATE_code_gen_if = { NULL, /* before abi introduce hook */ TEMPLATE_prepare_graph, NULL, /* spill hook */ - TEMPLATE_before_sched, /* before scheduling hook */ TEMPLATE_before_ra, /* before register allocation hook */ TEMPLATE_after_ra, /* after register allocation hook */ TEMPLATE_finish_irg, diff --git a/ir/be/arm/bearch_arm.c b/ir/be/arm/bearch_arm.c index 3040ca419..f2adbdfea 100644 --- a/ir/be/arm/bearch_arm.c +++ b/ir/be/arm/bearch_arm.c @@ -310,15 +310,6 @@ static void arm_finish_irg(void *self) } -/** - * These are some hooks which must be filled but are probably not needed. - */ -static void arm_before_sched(void *self) -{ - (void) self; - /* Some stuff you need to do after scheduling but before register allocation */ -} - static void arm_before_ra(void *self) { (void) self; @@ -556,7 +547,6 @@ static const arch_code_generator_if_t arm_code_gen_if = { arm_before_abi, /* before abi introduce */ arm_prepare_graph, NULL, /* spill */ - arm_before_sched, /* before scheduling hook */ arm_before_ra, /* before register allocation hook */ arm_after_ra, arm_finish_irg, diff --git a/ir/be/bearch_t.h b/ir/be/bearch_t.h index ae203459d..f1cfc1eaf 100644 --- a/ir/be/bearch_t.h +++ b/ir/be/bearch_t.h @@ -341,11 +341,6 @@ struct arch_code_generator_if_t { */ void (*spill)(void *self, be_irg_t *birg); - /** - * Called before scheduling. - */ - void (*before_sched)(void *self); - /** * Called before register allocation. */ @@ -388,7 +383,6 @@ do { \ #define arch_code_generator_before_abi(cg) _arch_cg_call(cg, before_abi) #define arch_code_generator_prepare_graph(cg) _arch_cg_call(cg, prepare_graph) -#define arch_code_generator_before_sched(cg) _arch_cg_call(cg, before_sched) #define arch_code_generator_before_ra(cg) _arch_cg_call(cg, before_ra) #define arch_code_generator_after_ra(cg) _arch_cg_call(cg, after_ra) #define arch_code_generator_finish(cg) _arch_cg_call(cg, finish) diff --git a/ir/be/bemain.c b/ir/be/bemain.c index b87ed067f..b7943dead 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -689,11 +689,6 @@ static void be_main_loop(FILE *file_handle, const char *cup_name) /* disabled for now, fails for EmptyFor.c and XXEndless.c */ /* be_live_chk_compare(birg); */ - /* let backend prepare scheduling */ - BE_TIMER_PUSH(t_codegen); - arch_code_generator_before_sched(birg->cg); - BE_TIMER_POP(t_codegen); - /* schedule the irg */ BE_TIMER_PUSH(t_sched); switch (be_options.scheduler) { diff --git a/ir/be/ia32/bearch_ia32.c b/ir/be/ia32/bearch_ia32.c index 965b211e9..eddb79f27 100644 --- a/ir/be/ia32/bearch_ia32.c +++ b/ir/be/ia32/bearch_ia32.c @@ -1014,13 +1014,6 @@ static void ia32_prepare_graph(void *self) { be_dump(cg->irg, "-place", dump_ir_block_graph_sched); } -/** - * Dummy functions for hooks we don't need but which must be filled. - */ -static void ia32_before_sched(void *self) { - (void) self; -} - ir_node *turn_back_am(ir_node *node) { ir_graph *irg = current_ir_graph; @@ -1590,7 +1583,6 @@ static const arch_code_generator_if_t ia32_code_gen_if = { ia32_before_abi, /* before abi introduce hook */ ia32_prepare_graph, NULL, /* spill */ - ia32_before_sched, /* before scheduling hook */ ia32_before_ra, /* before register allocation hook */ ia32_after_ra, /* after register allocation hook */ ia32_finish, /* called before codegen */ diff --git a/ir/be/mips/bearch_mips.c b/ir/be/mips/bearch_mips.c index 70fa32d78..569551b92 100644 --- a/ir/be/mips/bearch_mips.c +++ b/ir/be/mips/bearch_mips.c @@ -348,14 +348,6 @@ static void mips_finish_irg(void *self) { } -/** - * These are some hooks which must be filled but are probably not needed. - */ -static void mips_before_sched(void *self) -{ - (void) self; -} - static void mips_before_ra(void *self) { (void) self; @@ -395,7 +387,6 @@ static const arch_code_generator_if_t mips_code_gen_if = { NULL, /* before abi introduce */ mips_prepare_graph, NULL, /* spill */ - mips_before_sched, /* before scheduling hook */ mips_before_ra, /* before register allocation hook */ mips_after_ra, mips_finish_irg, diff --git a/ir/be/ppc32/bearch_ppc32.c b/ir/be/ppc32/bearch_ppc32.c index 07a43b71c..c49b754d6 100644 --- a/ir/be/ppc32/bearch_ppc32.c +++ b/ir/be/ppc32/bearch_ppc32.c @@ -457,14 +457,6 @@ static void ppc32_finish_irg(void *self) { } -/** - * These are some hooks which must be filled but are probably not needed. - */ -static void ppc32_before_sched(void *self) { - (void) self; - /* Some stuff you need to do after scheduling but before register allocation */ -} - /** * Called before the register allocator. * Calculate a block schedule here. We need it for the x87 @@ -589,7 +581,6 @@ static const arch_code_generator_if_t ppc32_code_gen_if = { ppc32_before_abi, ppc32_prepare_graph, NULL, /* spill */ - ppc32_before_sched, /* before scheduling hook */ ppc32_before_ra, /* before register allocation hook */ ppc32_after_ra, ppc32_finish_irg, -- 2.20.1