Commit eced69b5 by Richard Henderson Committed by Richard Henderson

timevar.def (TV_MACH_DEP): New.

        * timevar.def (TV_MACH_DEP): New.
        * toplev.c (rest_of_compilation): Use it.
        * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.

From-SVN: r45017
parent b36d8fb4
2001-08-18 Richard Henderson <rth@redhat.com>
* timevar.def (TV_MACH_DEP): New.
* toplev.c (rest_of_compilation): Use it.
* config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
2001-08-18 Zack Weinberg <zackw@panix.com> 2001-08-18 Zack Weinberg <zackw@panix.com>
* unwind-dw2.c (execute_stack_op): Add default aborts to * unwind-dw2.c (execute_stack_op): Add default aborts to
......
...@@ -43,6 +43,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -43,6 +43,7 @@ Boston, MA 02111-1307, USA. */
#include "basic-block.h" #include "basic-block.h"
#include "toplev.h" #include "toplev.h"
#include "sched-int.h" #include "sched-int.h"
#include "timevar.h"
#include "target.h" #include "target.h"
#include "target-def.h" #include "target-def.h"
...@@ -6562,9 +6563,11 @@ ia64_reorg (insns) ...@@ -6562,9 +6563,11 @@ ia64_reorg (insns)
if (ia64_flag_schedule_insns2) if (ia64_flag_schedule_insns2)
{ {
timevar_push (TV_SCHED2);
ia64_final_schedule = 1; ia64_final_schedule = 1;
schedule_ebbs (rtl_dump_file); schedule_ebbs (rtl_dump_file);
ia64_final_schedule = 0; ia64_final_schedule = 0;
timevar_pop (TV_SCHED2);
/* This relies on the NOTE_INSN_BASIC_BLOCK notes to be in the same /* This relies on the NOTE_INSN_BASIC_BLOCK notes to be in the same
place as they were during scheduling. */ place as they were during scheduling. */
......
...@@ -69,6 +69,7 @@ DEFTIMEVAR (TV_IFCVT2 , "if-conversion 2") ...@@ -69,6 +69,7 @@ DEFTIMEVAR (TV_IFCVT2 , "if-conversion 2")
DEFTIMEVAR (TV_PEEPHOLE2 , "peephole 2") DEFTIMEVAR (TV_PEEPHOLE2 , "peephole 2")
DEFTIMEVAR (TV_RENAME_REGISTERS , "rename registers") DEFTIMEVAR (TV_RENAME_REGISTERS , "rename registers")
DEFTIMEVAR (TV_SCHED2 , "scheduling 2") DEFTIMEVAR (TV_SCHED2 , "scheduling 2")
DEFTIMEVAR (TV_MACH_DEP , "machine dep reorg")
DEFTIMEVAR (TV_DBR_SCHED , "delay branch sched") DEFTIMEVAR (TV_DBR_SCHED , "delay branch sched")
DEFTIMEVAR (TV_REORDER_BLOCKS , "reorder blocks") DEFTIMEVAR (TV_REORDER_BLOCKS , "reorder blocks")
DEFTIMEVAR (TV_SHORTEN_BRANCH , "shorten branches") DEFTIMEVAR (TV_SHORTEN_BRANCH , "shorten branches")
......
...@@ -3611,11 +3611,13 @@ rest_of_compilation (decl) ...@@ -3611,11 +3611,13 @@ rest_of_compilation (decl)
/* If a machine dependent reorganization is needed, call it. */ /* If a machine dependent reorganization is needed, call it. */
#ifdef MACHINE_DEPENDENT_REORG #ifdef MACHINE_DEPENDENT_REORG
timevar_push (TV_MACH_DEP);
open_dump_file (DFI_mach, decl); open_dump_file (DFI_mach, decl);
MACHINE_DEPENDENT_REORG (insns); MACHINE_DEPENDENT_REORG (insns);
close_dump_file (DFI_mach, print_rtl, insns); close_dump_file (DFI_mach, print_rtl, insns);
timevar_pop (TV_MACH_DEP);
ggc_collect (); ggc_collect ();
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment