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
This commit is contained in:
parent
f2e6f32e60
commit
c21510a9f1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue