diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-06-08 15:16:44 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-06-08 13:16:44 +0000 |
commit | b69d9ac6a9f6fae426080c77ce4a395fafb49a5f (patch) | |
tree | 70e06d0d036ff5e480b61732710afb7406205bfd /gcc/profile-count.h | |
parent | c46f9051654ff52ed083084c109e9247b7fce9aa (diff) | |
download | gcc-b69d9ac6a9f6fae426080c77ce4a395fafb49a5f.zip gcc-b69d9ac6a9f6fae426080c77ce4a395fafb49a5f.tar.gz gcc-b69d9ac6a9f6fae426080c77ce4a395fafb49a5f.tar.bz2 |
predict.c (maybe_hot_bb_p): Do not check profile status.
* predict.c (maybe_hot_bb_p): Do not check profile status.
(maybe_hot_edge_p): Likewise.
(probably_never_executed): Check for zero counts even if profile
is not read.
(unlikely_executed_edge_p): New function.
(unlikely_executed_stmt_p): New function.
(unlikely_executed_bb_p): New function.
(set_even_probabilities): Use unlikely predicates.
(combine_predictions_for_bb): Likewise.
(predict_paths_for_bb): Likewise.
(predict_paths_leading_to_edge): Likewise.
(determine_unlikely_bbs): New function.
(estimate_bb_frequencies): Use it.
(compute_function_frequency): Use zero counts even if profile is
not read.
* profile-count.h: Fix typo.
* g++.dg/tree-ssa/counts-1.C: New testcase.
* gcc.dg/tree-ssa/counts-1.c: New testcase.
From-SVN: r249013
Diffstat (limited to 'gcc/profile-count.h')
-rw-r--r-- | gcc/profile-count.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/profile-count.h b/gcc/profile-count.h index e7815db..78ffee9 100644 --- a/gcc/profile-count.h +++ b/gcc/profile-count.h @@ -36,7 +36,7 @@ along with GCC; see the file COPYING3. If not see profile counts known while other do not - for example when LTO optimizing partly profiled program or when profile was lost due to COMDAT merging. - For this information profile_count tracks more information than + For this reason profile_count tracks more information than just unsigned integer and it is also ready for profile mismatches. The API of this data type represent operations that are natural on profile counts - sum, difference and operation with scales and |