summaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-31 18:08:31 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-31 18:08:31 +0000
commit3cb0c12f0819cbbf5f8227dba197bb4f379b867f (patch)
treeef1fad4acbaca6cb47cbe8df49f980a4725047f4 /gcc/predict.c
parent614b82b2e90b193411d4da0c3853f09e0dd78894 (diff)
downloadgcc-3cb0c12f0819cbbf5f8227dba197bb4f379b867f.tar.gz
* predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
mistakely had old version of patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139836 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 183ae8fa7cb..41a9ee32eb8 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. */