diff options
author | Steven Bosscher <stevenb.gcc@gmail.com> | 2006-03-12 22:58:22 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2006-03-12 22:58:22 +0000 |
commit | 3d47ea88f3b5a2458f499633f831c65179003f6e (patch) | |
tree | d2df1cff7b7b6d39cad373f658025e733516f5d3 /gcc/profile.c | |
parent | 189cd5056db36dc477e1673f75f2eccf3be4056b (diff) | |
download | gcc-3d47ea88f3b5a2458f499633f831c65179003f6e.zip gcc-3d47ea88f3b5a2458f499633f831c65179003f6e.tar.gz gcc-3d47ea88f3b5a2458f499633f831c65179003f6e.tar.bz2 |
predict.c (estimate_probability): Remove.
* predict.c (estimate_probability): Remove.
* profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
* basic-block.h (estimate_probability): Remove prototype.
* passes.c (finish_optimization_passes): Dump branch prediction or
profiling heuristics to the .profile tree dump.
(init_optimization_passes): Unqueue pass_branch_prob.
* doc/invoke.texi (-fdump-rtl-bp): Remove.
From-SVN: r111980
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 7fa9aad..2f6d8aa 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1336,46 +1336,3 @@ tree_register_profile_hooks (void) profile_hooks = &tree_profile_hooks; } - -/* Do branch profiling and static profile estimation passes. */ -static unsigned int -rest_of_handle_branch_prob (void) -{ - struct loops loops; - - /* Discover and record the loop depth at the head of each basic - block. The loop infrastructure does the real job for us. */ - flow_loops_find (&loops); - - if (dump_file) - flow_loops_dump (&loops, dump_file, NULL, 0); - - /* Estimate using heuristics if no profiling info is available. */ - if (flag_guess_branch_prob - && profile_status == PROFILE_ABSENT) - estimate_probability (&loops); - - flow_loops_free (&loops); - free_dominance_info (CDI_DOMINATORS); - return 0; -} - -struct tree_opt_pass pass_branch_prob = -{ - "bp", /* name */ - NULL, /* gate */ - rest_of_handle_branch_prob, /* execute */ - NULL, /* sub */ - NULL, /* next */ - 0, /* static_pass_number */ - TV_BRANCH_PROB, /* tv_id */ - 0, /* properties_required */ - 0, /* properties_provided */ - 0, /* properties_destroyed */ - 0, /* todo_flags_start */ - TODO_dump_func, /* todo_flags_finish */ - 'b' /* letter */ -}; - - - |