aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2008-08-31 20:08:31 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2008-08-31 18:08:31 +0000
commit3e196fa9b9e3d7ce3b23e11f6517a6439506a2bc (patch)
treeef1fad4acbaca6cb47cbe8df49f980a4725047f4
parenta065d52eff29059a680ee8d44b11f03c0a544562 (diff)
downloadgcc-3e196fa9b9e3d7ce3b23e11f6517a6439506a2bc.zip
gcc-3e196fa9b9e3d7ce3b23e11f6517a6439506a2bc.tar.gz
gcc-3e196fa9b9e3d7ce3b23e11f6517a6439506a2bc.tar.bz2
predict.c (maybe_hot_bb_p, [...]): Previous commit mistakely had old version of patch.
* predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit mistakely had old version of patch. From-SVN: r139836
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/predict.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bfbf234..c74589c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2008-08-31 Jan Hubicka <jh@suse.cz>
+ * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
+ mistakely had old version of patch.
+
* ipa-cp.c (ipcp_need_original_clone_p): Remove.
(ipcp_estimate_growth): New.
(ipcp_insert_stage): Use ipcp_estimate_growth.
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. */