diff options
author | Robert Kidd <rkidd@gcc.gnu.org> | 2007-09-10 12:49:46 +0000 |
---|---|---|
committer | Robert Kidd <rkidd@gcc.gnu.org> | 2007-09-10 12:49:46 +0000 |
commit | 232abc3ff8954a9b040ea11dd8e3291759a159c6 (patch) | |
tree | beede6b03e0a31fcf7974e27cc39df96abf78663 /gcc/bb-reorder.c | |
parent | 281b604e6b81db532a717590a6fc58b13d087cd0 (diff) | |
download | gcc-232abc3ff8954a9b040ea11dd8e3291759a159c6.zip gcc-232abc3ff8954a9b040ea11dd8e3291759a159c6.tar.gz gcc-232abc3ff8954a9b040ea11dd8e3291759a159c6.tar.bz2 |
bb-reorder.c (rest_of_handler_reorder_blocks): Removed call to RTL level tracer pass.
2007-09-10 Robert Kidd <rkidd@crhc.uiuc.edu>
* bb-reorder.c (rest_of_handler_reorder_blocks): Removed call to
RTL level tracer pass.
* passes.c (init_optimization_passes): Move pass_tracer from
after pass_rtl_ifcvt to after pass_dce.
* tracer.c: Update copyright.
(layout_superblocks): Remove function.
(mark_bb_seen): New.
(bb_seen_p): New.
(count_insns): Change to estimate instructions in a Tree-SSA
statement.
(find_trace): Use bb_seen_p.
(tail_duplicate): Use bb_seen_p. Call add_phi_args_after_copy
after duplicate_block.
(tracer): Change prototype to match that of a pass execute
callback.
(gate_tracer): Rename from gate_handle_tracer.
(rest_of_handle_tracer): Remove function.
* rtl.h: Remove prototype for tracer.
* testsuite/gcc.dg/tree-prof/tracer-1.c: New.
From-SVN: r128341
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r-- | gcc/bb-reorder.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 8f20f87..0b70771 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -2198,19 +2198,12 @@ rest_of_handle_reorder_blocks (void) splitting possibly introduced more crossjumping opportunities. */ cfg_layout_initialize (CLEANUP_EXPENSIVE); - if (flag_sched2_use_traces && flag_schedule_insns_after_reload) + if (flag_reorder_blocks || flag_reorder_blocks_and_partition) { - timevar_push (TV_TRACER); - tracer (); - timevar_pop (TV_TRACER); + reorder_basic_blocks (); + cleanup_cfg (CLEANUP_EXPENSIVE); } - if (flag_reorder_blocks || flag_reorder_blocks_and_partition) - reorder_basic_blocks (); - if (flag_reorder_blocks || flag_reorder_blocks_and_partition - || (flag_sched2_use_traces && flag_schedule_insns_after_reload)) - cleanup_cfg (CLEANUP_EXPENSIVE); - FOR_EACH_BB (bb) if (bb->next_bb != EXIT_BLOCK_PTR) bb->aux = bb->next_bb; |