+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>
* loop.c (move_movables): Handle combination of m->consec,
$(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)
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)
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)
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 \
#include "rtl.h"
#include "basic-block.h"
#include "flags.h"
+#include "timevar.h"
#include "output.h"
#include "cfglayout.h"
#include "fibheap.h"
if ((* targetm.cannot_modify_jumps_p) ())
return;
+ timevar_push (TV_REORDER_BLOCKS);
+
cfg_layout_initialize ();
set_edge_can_fallthru_flag ();
dump_flow_info (rtl_dump_file);
cfg_layout_finalize ();
+
+ timevar_pop (TV_REORDER_BLOCKS);
}
static void
rest_of_handle_reorder_blocks (tree decl, rtx insns)
{
- timevar_push (TV_REORDER_BLOCKS);
open_dump_file (DFI_bbro, decl);
/* Last attempt to optimize CFG, as scheduling, peepholing and insn
cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_UPDATE_LIFE);
close_dump_file (DFI_bbro, print_rtl_with_bb, insns);
- timevar_pop (TV_REORDER_BLOCKS);
}
#ifdef INSN_SCHEDULING
static void
rest_of_handle_tracer (tree decl, rtx insns)
{
- timevar_push (TV_TRACER);
open_dump_file (DFI_tracer, decl);
if (rtl_dump_file)
dump_flow_info (rtl_dump_file);
cleanup_cfg (CLEANUP_EXPENSIVE);
reg_scan (insns, max_reg_num (), 0);
close_dump_file (DFI_tracer, print_rtl_with_bb, get_insns ());
- timevar_pop (TV_TRACER);
}
/* If-conversion and CFG cleanup. */
#include "cfglayout.h"
#include "fibheap.h"
#include "flags.h"
+#include "timevar.h"
#include "params.h"
#include "coverage.h"
{
if (n_basic_blocks <= 1)
return;
+
+ timevar_push (TV_TRACER);
+
cfg_layout_initialize ();
mark_dfs_back_edges ();
if (rtl_dump_file)
if (rtl_dump_file)
dump_flow_info (rtl_dump_file);
cfg_layout_finalize ();
+
/* Merge basic blocks in duplicated traces. */
cleanup_cfg (CLEANUP_EXPENSIVE);
+
+ timevar_pop (TV_TRACER);
}