OSDN Git Service

2011-07-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jul 2011 15:44:50 +0000 (15:44 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jul 2011 15:44:50 +0000 (15:44 +0000)
* predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
frequency makes everything hot.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176794 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/predict.c

index 74f58cd..0177df8 100644 (file)
@@ -1,5 +1,10 @@
 2011-07-26  Richard Guenther  <rguenther@suse.de>
 
+       * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
+       frequency makes everything hot.
+
+2011-07-26  Richard Guenther  <rguenther@suse.de>
+
        PR tree-optimization/49840
        * tree-vrp.c (range_fits_type_p): Properly handle full
        double-int precision.
index f5e2449..eeca172 100644 (file)
@@ -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;