------- Comment #16 from hjl dot tools at gmail dot com  2010-04-29 02:20 
-------
This patch:

diff --git a/gcc/predict.c b/gcc/predict.c
index eb5ddef..a05e796 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -120,7 +120,8 @@ maybe_hot_frequency_p (int freq)
       if (cfun->function_frequency == FUNCTION_FREQUENCY_HOT)
         return true;
     }
-  if (profile_status == PROFILE_ABSENT)
+  if (profile_status == PROFILE_ABSENT
+      || profile_status == PROFILE_GUESSED)
     return true;
   if (freq < BB_FREQ_MAX / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION))
     return false;

seems to work for me. Since profile_status is PROFILE_GUESSED,
it may be hot as shown here.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43884

Reply via email to