From b69d9ac6a9f6fae426080c77ce4a395fafb49a5f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 8 Jun 2017 15:16:44 +0200 Subject: 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 --- gcc/profile-count.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/profile-count.h') 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 -- cgit v1.1