aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2018-01-24 09:12:40 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2018-01-24 08:12:40 +0000
commit97c07987a6d8052c77125b5f9841abc1f937b3eb (patch)
tree660c3f17e8e166b824b72c77a9eb809b2f20310e /gcc/predict.c
parent3885527ddf9ea47d0eab8d2c3a503a8e8e01d97d (diff)
downloadgcc-97c07987a6d8052c77125b5f9841abc1f937b3eb.zip
gcc-97c07987a6d8052c77125b5f9841abc1f937b3eb.tar.gz
gcc-97c07987a6d8052c77125b5f9841abc1f937b3eb.tar.bz2
cfgcleanup.c (try_crossjump_to_edge): Use combine_with_count to merge probabilities.
* cfgcleanup.c (try_crossjump_to_edge): Use combine_with_count to merge probabilities. * predict.c (probably_never_executed): Also mark as cold functions with global 0 profile and guessed local profile. * profile-count.c (profile_probability::combine_with_count): New member function. * profile-count.h (profile_probability::operator*, profile_probability::operator*=, profile_probability::operator/, profile_probability::operator/=): Reduce precision to adjusted and set value to guessed on contradictory divisions. (profile_probability::combine_with_freq): Remove. (profile_probability::combine_wiht_count): Declare. (profile_count::force_nonzero):: Set to adjusted. (profile_count::probability_in):: Set quality to adjusted. * tree-ssa-tail-merge.c (replace_block_by): Use combine_with_count. From-SVN: r257010
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 2d932e9..25629db 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -210,7 +210,7 @@ probably_never_executed (struct function *fun,
profile_count count)
{
gcc_checking_assert (fun);
- if (count == profile_count::zero ())
+ if (count.ipa () == profile_count::zero ())
return true;
/* Do not trust adjusted counts. This will make us to drop int cold section
code with low execution count as a result of inlining. These low counts