Remove the unused before_sched callback.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 15 Oct 2008 21:39:29 +0000 (21:39 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 15 Oct 2008 21:39:29 +0000 (21:39 +0000)
[r22932]

ir/be/TEMPLATE/bearch_TEMPLATE.c
ir/be/arm/bearch_arm.c
ir/be/bearch_t.h
ir/be/bemain.c
ir/be/ia32/bearch_ia32.c
ir/be/mips/bearch_mips.c
ir/be/ppc32/bearch_ppc32.c

index 5fd6753..8be93d6 100644 (file)
@@ -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,
index 3040ca4..f2adbdf 100644 (file)
@@ -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,
index ae20345..f1cfc1e 100644 (file)
@@ -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)
index b87ed06..b7943de 100644 (file)
@@ -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) {
index 965b211..eddb79f 100644 (file)
@@ -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 */
index 70fa32d..569551b 100644 (file)
@@ -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,
index 07a43b7..c49b754 100644 (file)
@@ -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,