diff options
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 183ae8f..41a9ee3 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -148,7 +148,7 @@ maybe_hot_count_p (gcov_type count) bool maybe_hot_bb_p (const_basic_block bb) { - return maybe_hot_count_p (bb->count) || maybe_hot_frequency_p (bb->frequency); + return maybe_hot_count_p (bb->count) && maybe_hot_frequency_p (bb->frequency); } /* Return true if the call can be hot. */ @@ -178,7 +178,7 @@ cgraph_maybe_hot_edge_p (struct cgraph_edge *edge) bool maybe_hot_edge_p (edge e) { - return maybe_hot_count_p (e->count) || maybe_hot_frequency_p (EDGE_FREQUENCY (e)); + return maybe_hot_count_p (e->count) && maybe_hot_frequency_p (EDGE_FREQUENCY (e)); } /* Return true in case BB is probably never executed. */ |