diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-16 10:06:00 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-16 10:06:00 +0000 |
commit | c3f62dc3cba9406733f8881e1ea9760a3907b4d9 (patch) | |
tree | 056bb5f96494fedc48b17e193c4c673598792662 | |
parent | b129a37a4880241f4c90e09342eab3c3e89b6d9d (diff) | |
download | gcc-c3f62dc3cba9406733f8881e1ea9760a3907b4d9.tar.gz |
* tree-ssa-threadupdate.c (compute_path_counts,
update_joiner_offpath_counts): Use profile_probability.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250233 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-threadupdate.c | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31bb7de762c..9470e63e365 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-07 Jan Hubicka <hubicka@ucw.cz> + + * tree-ssa-threadupdate.c (compute_path_counts, + update_joiner_offpath_counts): Use profile_probability. + 2017-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com> Revert: diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index 235a9073399..9da74675eef 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -763,8 +763,7 @@ compute_path_counts (struct redirection_data *rd, /* Handle incoming profile insanities. */ if (total_count < path_in_count) path_in_count = total_count; - int onpath_scale - = path_in_count.probability_in (total_count).to_reg_br_prob_base (); + profile_probability onpath_scale = path_in_count.probability_in (total_count); /* Walk the entire path to do some more computation in order to estimate how much of the path_in_count will flow out of the duplicated threading @@ -977,8 +976,8 @@ update_joiner_offpath_counts (edge epath, basic_block dup_bb, among the duplicated off-path edges based on their original ratio to the full off-path count (total_orig_off_path_count). */ - int scale = enonpath->count.probability_in (total_orig_off_path_count) - .to_reg_br_prob_base (); + profile_probability scale + = enonpath->count.probability_in (total_orig_off_path_count); /* Give the duplicated offpath edge a portion of the duplicated total. */ enonpathdup->count = total_dup_off_path_count.apply_probability (scale); |