From c21510a9f1cc185569a39334fe99f7b88fa009a3 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 26 Jul 2011 15:44:50 +0000 Subject: [PATCH] predict.c (maybe_hot_frequency_p): Make sure a zero entry-block frequency makes everything hot. 2011-07-26 Richard Guenther * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block frequency makes everything hot. From-SVN: r176794 --- gcc/ChangeLog | 5 +++++ gcc/predict.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 74f58cdde69..0177df88688 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-26 Richard Guenther + + * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block + frequency makes everything hot. + 2011-07-26 Richard Guenther PR tree-optimization/49840 diff --git a/gcc/predict.c b/gcc/predict.c index f5e2449f636..eeca172ce45 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -124,7 +124,7 @@ maybe_hot_frequency_p (int freq) if (profile_status == PROFILE_ABSENT) return true; if (node->frequency == NODE_FREQUENCY_EXECUTED_ONCE - && freq <= (ENTRY_BLOCK_PTR->frequency * 2 / 3)) + && freq < (ENTRY_BLOCK_PTR->frequency * 2 / 3)) return false; if (freq < ENTRY_BLOCK_PTR->frequency / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION)) return false; -- 2.30.2