diff options
author | Richard Guenther <rguenther@suse.de> | 2011-07-26 15:44:50 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-07-26 15:44:50 +0000 |
commit | c21510a9f1cc185569a39334fe99f7b88fa009a3 (patch) | |
tree | f32c168f26acdfd9541957c52cb93f15374afb6a | |
parent | f2e6f32e600beadb5273bdd49cbe2e32b37b3408 (diff) | |
download | gcc-c21510a9f1cc185569a39334fe99f7b88fa009a3.zip gcc-c21510a9f1cc185569a39334fe99f7b88fa009a3.tar.gz gcc-c21510a9f1cc185569a39334fe99f7b88fa009a3.tar.bz2 |
predict.c (maybe_hot_frequency_p): Make sure a zero entry-block frequency makes everything hot.
2011-07-26 Richard Guenther <rguenther@suse.de>
* predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
frequency makes everything hot.
From-SVN: r176794
-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; |