diff options
author | rkidd <rkidd@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-10 12:49:46 +0000 |
---|---|---|
committer | rkidd <rkidd@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-10 12:49:46 +0000 |
commit | 3ddccd577896fafaf76163658ebec92f5e7c1ef1 (patch) | |
tree | beede6b03e0a31fcf7974e27cc39df96abf78663 /gcc/bb-reorder.c | |
parent | d0cd0d1025376a4fcd3fef1e88ae4017a3546ad3 (diff) | |
download | gcc-3ddccd577896fafaf76163658ebec92f5e7c1ef1.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128341 138bc75d-0d04-0410-961f-82ee72b054a4
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 8f20f87ce09..0b707717124 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; |