aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.h
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2013-11-12 15:03:28 +0000
committerTeresa Johnson <tejohnson@gcc.gnu.org>2013-11-12 15:03:28 +0000
commiteb4b92c13be5ec67ca43b701da932835bdd1e4b7 (patch)
treedd1e6b187157352f6f08341a70daaedf473980fa /gcc/predict.h
parenta720b48e18470367633194fff2107ba0b131d3bb (diff)
downloadgcc-eb4b92c13be5ec67ca43b701da932835bdd1e4b7.zip
gcc-eb4b92c13be5ec67ca43b701da932835bdd1e4b7.tar.gz
gcc-eb4b92c13be5ec67ca43b701da932835bdd1e4b7.tar.bz2
predict.c (drop_profile): New function.
2013-11-12 Teresa Johnson <tejohnson@google.com> Jan Hubicka <jh@suse.cz> * predict.c (drop_profile): New function. (handle_missing_profiles): Ditto. (counts_to_freqs): Don't overwrite estimated frequencies when function has no profile counts. * predict.h (handle_missing_profiles): Declare. * tree-inline.c (freqs_to_counts): New function. (copy_cfg_body): Invoke freqs_to_counts as needed. * tree-profile.c (tree_profiling): Invoke handle_missing_profiles. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r204704
Diffstat (limited to 'gcc/predict.h')
-rw-r--r--gcc/predict.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/predict.h b/gcc/predict.h
index 02650e2..83b1695 100644
--- a/gcc/predict.h
+++ b/gcc/predict.h
@@ -37,6 +37,7 @@ enum prediction
extern void predict_insn_def (rtx, enum br_predictor, enum prediction);
extern int counts_to_freqs (void);
+extern void handle_missing_profiles (void);
extern void estimate_bb_frequencies (bool);
extern const char *predictor_name (enum br_predictor);
extern tree build_predict_expr (enum br_predictor, enum prediction);