diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-17 16:08:27 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-17 16:08:27 +0000 |
commit | 5a5f50e974c1dd781281725c537a42bea8d6139c (patch) | |
tree | 8b17781c72abea0097ae16f0f158a2f6d1f6400b /gcc/profile.c | |
parent | 530dc1260486ffe2128aa997bef742f1ff2bef26 (diff) |
* predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
(tree_estimate_probability): Likewise.
(pass_profile::execute): Update.
(report_predictor_hitrates): New function.
* profile.c (compute_branch_probabilities): Use it.
* predict.h (report_predictor_hitrates): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235082 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index bdc89c245ab..39c81d4fbaf 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -845,6 +845,8 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum) fputc ('\n', dump_file); fputc ('\n', dump_file); } + if (dump_file && (dump_flags & TDF_DETAILS)) + report_predictor_hitrates (); free_aux_for_blocks (); } |