diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/predict.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 74f58cd..0177df8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/predict.c b/gcc/predict.c index f5e2449..eeca172 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; |
