diff options
author | Jan Hubicka <jh@suse.cz> | 2011-01-22 21:47:40 +0000 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2011-01-22 21:47:40 +0000 |
commit | cc0cdaa8fbe6cec7b9026186d7e523aa146cf23d (patch) | |
tree | b5772c7378d64070137aeb9449a4d84467164354 /gcc/predict.c | |
parent | e5357de4bb31c4ac7200220e51a10df5cd9ece88 (diff) |
PR tree-optimization/43884
PR lto/44334
* predict.c (maybe_hot_frequency_p): Use entry block frequency as an base.
* doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
* gcc.dg/autopar/outer-2.c: Increase array size.
* gcc.dg/tree-ssa/ldist-pr45948.c: Update test.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@169136 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index a86708a5935..dc1104f850e 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -126,7 +126,7 @@ maybe_hot_frequency_p (int freq) if (node->frequency == NODE_FREQUENCY_EXECUTED_ONCE && freq <= (ENTRY_BLOCK_PTR->frequency * 2 / 3)) return false; - if (freq < BB_FREQ_MAX / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION)) + if (freq < ENTRY_BLOCK_PTR->frequency / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION)) return false; return true; } |