diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-12-01 16:12:52 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-12-01 15:12:52 +0000 |
commit | 51b74457354bdff937b0dc7709112f5f9d412388 (patch) | |
tree | 68bf46ff923ae479cfcb05008e4783470496b0d8 /gcc/predict.c | |
parent | 1f7a540c110a18ab1be7d931f02ccb5784f0a04d (diff) | |
download | gcc-51b74457354bdff937b0dc7709112f5f9d412388.zip gcc-51b74457354bdff937b0dc7709112f5f9d412388.tar.gz gcc-51b74457354bdff937b0dc7709112f5f9d412388.tar.bz2 |
profile-count.h (profile_count::operator<): Use IPA value for comparsion.
* profile-count.h (profile_count::operator<): Use IPA value for
comparsion.
(profile_count::operator>): Likewise.
(profile_count::operator<=): Likewise.
(profile_count::operator>=): Likewise.
* predict.c (maybe_hot_count_p): Do not convert to gcov_type.
From-SVN: r278885
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 8c66a27..67f850d 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -184,7 +184,7 @@ maybe_hot_count_p (struct function *fun, profile_count count) /* Code executed at most once is not hot. */ if (count <= MAX (profile_info ? profile_info->runs : 1, 1)) return false; - return (count.to_gcov_type () >= get_hot_bb_threshold ()); + return (count >= get_hot_bb_threshold ()); } /* Return true if basic block BB of function FUN can be CPU intensive |