aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-28 16:20:06 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-28 16:20:06 +0000
commit2d9e68f0a909f0e44c6aea6775b2f5a23ee0b56a (patch)
tree3904a58f4874d2c80bb097f84fc3add4d47eb015 /gcc/profile.c
parentf6e0b8d0f62a9d79292180b1feedded8538079f9 (diff)
* profile.c (compute_branch_probabilities): Do not report hitrates
here. (branch_prob): Report hitrates here. * predict.c (gimple_predict_edge): Do not assert profile status; fix formatting issues. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236849 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index 39c81d4fbaf..007379baa13 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -845,8 +845,6 @@ 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 ();
}
@@ -1331,6 +1329,8 @@ branch_prob (void)
values.release ();
free_edge_list (el);
coverage_end_function (lineno_checksum, cfg_checksum);
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ report_predictor_hitrates ();
}
/* Union find algorithm implementation for the basic blocks using