diff options
author | Jan Hubicka <jh@suse.cz> | 2004-09-25 12:06:18 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-09-25 10:06:18 +0000 |
commit | bbd236a198069ed5a9e9526b99f70f406c30e5c0 (patch) | |
tree | a844c1a79dda581a3aa0d026ae759027d7ec0a30 /gcc/predict.c | |
parent | 70f3cc30aa04ab2f57f156c16a7f1db33084f04e (diff) | |
download | gcc-bbd236a198069ed5a9e9526b99f70f406c30e5c0.zip gcc-bbd236a198069ed5a9e9526b99f70f406c30e5c0.tar.gz gcc-bbd236a198069ed5a9e9526b99f70f406c30e5c0.tar.bz2 |
predict.c (counts_to_freqs): Make glolbal.
* predict.c (counts_to_freqs): Make glolbal.
* predict.h (counts_to_freqa): Declare.
* profile.c (compute_branch_probabilities): Compute frequencies
* tree-profile.c (do_tree_profiling): Refine conditional on when
tree profiling pass is needed.
From-SVN: r88093
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index cc314ec..18b6b90 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -76,7 +76,6 @@ static void dump_prediction (FILE *, enum br_predictor, int, basic_block, int); static void estimate_loops_at_level (struct loop *loop); static void propagate_freq (struct loop *); static void estimate_bb_frequencies (struct loops *); -static int counts_to_freqs (void); static void predict_paths_leading_to (basic_block, int *, enum br_predictor, enum prediction); static bool last_basic_block_p (basic_block); static void compute_function_frequency (void); @@ -1705,7 +1704,7 @@ estimate_loops_at_level (struct loop *first_loop) /* Convert counts measured by profile driven feedback to frequencies. Return nonzero iff there was any nonzero execution count. */ -static int +int counts_to_freqs (void) { gcov_type count_max, true_count_max = 0; |