Commit 38700cee by Steven Bosscher Committed by Steven Bosscher

Makefile.in (tracer.o, [...]): Depend on timevar.h

	* Makefile.in (tracer.o, bb-reorder.o): Depend on timevar.h
	* toplev.c (rest_of_handle_reorder_blocks, rest_of_handle_tracer):
	Don't push and pop TV_REORDER_BLOCKS timevars, do it...
	* bb-reorder.c (reorder_basic_blocks): ...here, and...
	* tracer.c (tracer): here.

From-SVN: r74786
parent a7296ae1
2003-12-18 Steven Bosscher <stevenb@suse.de>
* Makefile.in (tracer.o, bb-reorder.o): Depend on timevar.h
* toplev.c (rest_of_handle_reorder_blocks, rest_of_handle_tracer):
Don't push and pop TV_REORDER_BLOCKS timevars, do it...
* bb-reorder.c (reorder_basic_blocks): ...here, and...
* tracer.c (tracer): here.
2003-12-18 Ulrich Weigand <uweigand@de.ibm.com> 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
* loop.c (move_movables): Handle combination of m->consec, * loop.c (move_movables): Handle combination of m->consec,
......
...@@ -1815,10 +1815,10 @@ predict.o: predict.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE ...@@ -1815,10 +1815,10 @@ predict.o: predict.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE
$(PARAMS_H) $(TARGET_H) cfgloop.h $(COVERAGE_H) $(PARAMS_H) $(TARGET_H) cfgloop.h $(COVERAGE_H)
lists.o: lists.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) toplev.h $(RTL_H) $(GGC_H) lists.o: lists.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) toplev.h $(RTL_H) $(GGC_H)
bb-reorder.o : bb-reorder.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ bb-reorder.o : bb-reorder.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(RTL_H) $(BASIC_BLOCK_H) flags.h output.h cfglayout.h $(FIBHEAP_H) \ $(RTL_H) $(BASIC_BLOCK_H) flags.h timevar.h output.h cfglayout.h $(FIBHEAP_H) \
$(TARGET_H) $(TARGET_H)
tracer.o : tracer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \ tracer.o : tracer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \
$(BASIC_BLOCK_H) hard-reg-set.h output.h cfglayout.h flags.h \ $(BASIC_BLOCK_H) hard-reg-set.h output.h cfglayout.h flags.h timevar.h \
$(PARAMS_H) $(COVERAGE_H) $(PARAMS_H) $(COVERAGE_H)
cfglayout.o : cfglayout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ cfglayout.o : cfglayout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(RTL_H) $(TREE_H) insn-config.h $(BASIC_BLOCK_H) hard-reg-set.h output.h \ $(RTL_H) $(TREE_H) insn-config.h $(BASIC_BLOCK_H) hard-reg-set.h output.h \
......
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
#include "rtl.h" #include "rtl.h"
#include "basic-block.h" #include "basic-block.h"
#include "flags.h" #include "flags.h"
#include "timevar.h"
#include "output.h" #include "output.h"
#include "cfglayout.h" #include "cfglayout.h"
#include "fibheap.h" #include "fibheap.h"
...@@ -1064,6 +1065,8 @@ reorder_basic_blocks (void) ...@@ -1064,6 +1065,8 @@ reorder_basic_blocks (void)
if ((* targetm.cannot_modify_jumps_p) ()) if ((* targetm.cannot_modify_jumps_p) ())
return; return;
timevar_push (TV_REORDER_BLOCKS);
cfg_layout_initialize (); cfg_layout_initialize ();
set_edge_can_fallthru_flag (); set_edge_can_fallthru_flag ();
...@@ -1096,4 +1099,6 @@ reorder_basic_blocks (void) ...@@ -1096,4 +1099,6 @@ reorder_basic_blocks (void)
dump_flow_info (rtl_dump_file); dump_flow_info (rtl_dump_file);
cfg_layout_finalize (); cfg_layout_finalize ();
timevar_pop (TV_REORDER_BLOCKS);
} }
...@@ -2298,7 +2298,6 @@ rest_of_handle_regrename (tree decl, rtx insns) ...@@ -2298,7 +2298,6 @@ rest_of_handle_regrename (tree decl, rtx insns)
static void static void
rest_of_handle_reorder_blocks (tree decl, rtx insns) rest_of_handle_reorder_blocks (tree decl, rtx insns)
{ {
timevar_push (TV_REORDER_BLOCKS);
open_dump_file (DFI_bbro, decl); open_dump_file (DFI_bbro, decl);
/* Last attempt to optimize CFG, as scheduling, peepholing and insn /* Last attempt to optimize CFG, as scheduling, peepholing and insn
...@@ -2315,7 +2314,6 @@ rest_of_handle_reorder_blocks (tree decl, rtx insns) ...@@ -2315,7 +2314,6 @@ rest_of_handle_reorder_blocks (tree decl, rtx insns)
cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_UPDATE_LIFE); cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_UPDATE_LIFE);
close_dump_file (DFI_bbro, print_rtl_with_bb, insns); close_dump_file (DFI_bbro, print_rtl_with_bb, insns);
timevar_pop (TV_REORDER_BLOCKS);
} }
#ifdef INSN_SCHEDULING #ifdef INSN_SCHEDULING
...@@ -2394,7 +2392,6 @@ rest_of_handle_regmove (tree decl, rtx insns) ...@@ -2394,7 +2392,6 @@ rest_of_handle_regmove (tree decl, rtx insns)
static void static void
rest_of_handle_tracer (tree decl, rtx insns) rest_of_handle_tracer (tree decl, rtx insns)
{ {
timevar_push (TV_TRACER);
open_dump_file (DFI_tracer, decl); open_dump_file (DFI_tracer, decl);
if (rtl_dump_file) if (rtl_dump_file)
dump_flow_info (rtl_dump_file); dump_flow_info (rtl_dump_file);
...@@ -2402,7 +2399,6 @@ rest_of_handle_tracer (tree decl, rtx insns) ...@@ -2402,7 +2399,6 @@ rest_of_handle_tracer (tree decl, rtx insns)
cleanup_cfg (CLEANUP_EXPENSIVE); cleanup_cfg (CLEANUP_EXPENSIVE);
reg_scan (insns, max_reg_num (), 0); reg_scan (insns, max_reg_num (), 0);
close_dump_file (DFI_tracer, print_rtl_with_bb, get_insns ()); close_dump_file (DFI_tracer, print_rtl_with_bb, get_insns ());
timevar_pop (TV_TRACER);
} }
/* If-conversion and CFG cleanup. */ /* If-conversion and CFG cleanup. */
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include "cfglayout.h" #include "cfglayout.h"
#include "fibheap.h" #include "fibheap.h"
#include "flags.h" #include "flags.h"
#include "timevar.h"
#include "params.h" #include "params.h"
#include "coverage.h" #include "coverage.h"
...@@ -360,6 +361,9 @@ tracer (void) ...@@ -360,6 +361,9 @@ tracer (void)
{ {
if (n_basic_blocks <= 1) if (n_basic_blocks <= 1)
return; return;
timevar_push (TV_TRACER);
cfg_layout_initialize (); cfg_layout_initialize ();
mark_dfs_back_edges (); mark_dfs_back_edges ();
if (rtl_dump_file) if (rtl_dump_file)
...@@ -369,6 +373,9 @@ tracer (void) ...@@ -369,6 +373,9 @@ tracer (void)
if (rtl_dump_file) if (rtl_dump_file)
dump_flow_info (rtl_dump_file); dump_flow_info (rtl_dump_file);
cfg_layout_finalize (); cfg_layout_finalize ();
/* Merge basic blocks in duplicated traces. */ /* Merge basic blocks in duplicated traces. */
cleanup_cfg (CLEANUP_EXPENSIVE); cleanup_cfg (CLEANUP_EXPENSIVE);
timevar_pop (TV_TRACER);
} }
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