From dae3e97c81811d87cd9d58e68a85dda83676b7f4 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 23 Jan 2018 10:50:01 +0100 Subject: [PATCH] profile-count.h (profile_probability::very_unlikely, [...]): Set precision to guessed. * profile-count.h (profile_probability::very_unlikely, profile_probability::unlikely, profile_probability::even): Set precision to guessed. From-SVN: r256974 --- gcc/ChangeLog | 6 ++++++ gcc/profile-count.h | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f3fb04f2be0..4a29b02e488 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-23 Jan Hubicka + + * profile-count.h (profile_probability::very_unlikely, + profile_probability::unlikely, profile_probability::even): Set + precision to guessed. + 2018-01-23 Richard Biener PR tree-optimization/83963 diff --git a/gcc/profile-count.h b/gcc/profile-count.h index db274f4c5af..69919eeeb6d 100644 --- a/gcc/profile-count.h +++ b/gcc/profile-count.h @@ -164,7 +164,7 @@ public: { /* Be consistent with PROB_VERY_UNLIKELY in predict.h. */ profile_probability r - = profile_probability::always ().apply_scale (1, 2000); + = profile_probability::guessed_always ().apply_scale (1, 2000); r.m_val--; return r; } @@ -172,13 +172,13 @@ public: { /* Be consistent with PROB_VERY_LIKELY in predict.h. */ profile_probability r - = profile_probability::always ().apply_scale (1, 5); + = profile_probability::guessed_always ().apply_scale (1, 5); r.m_val--; return r; } static profile_probability even () { - return profile_probability::always ().apply_scale (1, 2); + return profile_probability::guessed_always ().apply_scale (1, 2); } static profile_probability very_likely () { -- 2.30.2