diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-11-17 18:47:36 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-11-17 17:47:36 +0000 |
commit | 650fe7323c11e5e116e34d88028909b1221e2cc8 (patch) | |
tree | c5efcdde9c45c7831beb37712307f991d8211360 /gcc/profile-count.h | |
parent | db16c1841a09f60bbdf2bb825e7e790a437f83c7 (diff) | |
download | gcc-650fe7323c11e5e116e34d88028909b1221e2cc8.zip gcc-650fe7323c11e5e116e34d88028909b1221e2cc8.tar.gz gcc-650fe7323c11e5e116e34d88028909b1221e2cc8.tar.bz2 |
predict.c (determine_unlikely_bbs): Set cgraph node count to 0 when entry block was promoted unlikely.
* predict.c (determine_unlikely_bbs): Set cgraph node count to 0
when entry block was promoted unlikely.
(estimate_bb_frequencies): Increase frequency scale.
* profile-count.h (profile_count): Export precision info.
* gcc.dg/tree-ssa/dump-2.c: Fixup template for profile precision
changes.
* gcc.dg/tree-ssa/pr77445-2.c: Fixup template for profile precision
changes.
From-SVN: r254888
Diffstat (limited to 'gcc/profile-count.h')
-rw-r--r-- | gcc/profile-count.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/profile-count.h b/gcc/profile-count.h index 90d1bc7..66a217d 100644 --- a/gcc/profile-count.h +++ b/gcc/profile-count.h @@ -605,11 +605,13 @@ class sreal; class GTY(()) profile_count { +public: /* Use 62bit to hold basic block counters. Should be at least 64bit. Although a counter cannot be negative, we use a signed type to hold various extra stages. */ static const int n_bits = 61; +private: static const uint64_t max_count = ((uint64_t) 1 << n_bits) - 2; static const uint64_t uninitialized_count = ((uint64_t) 1 << n_bits) - 1; |