Commit c21510a9 by Richard Guenther Committed by Richard Biener

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
parent f2e6f32e
2011-07-26 Richard Guenther <rguenther@suse.de> 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 PR tree-optimization/49840
* tree-vrp.c (range_fits_type_p): Properly handle full * tree-vrp.c (range_fits_type_p): Properly handle full
double-int precision. double-int precision.
......
...@@ -124,7 +124,7 @@ maybe_hot_frequency_p (int freq) ...@@ -124,7 +124,7 @@ maybe_hot_frequency_p (int freq)
if (profile_status == PROFILE_ABSENT) if (profile_status == PROFILE_ABSENT)
return true; return true;
if (node->frequency == NODE_FREQUENCY_EXECUTED_ONCE if (node->frequency == NODE_FREQUENCY_EXECUTED_ONCE
&& freq <= (ENTRY_BLOCK_PTR->frequency * 2 / 3)) && freq < (ENTRY_BLOCK_PTR->frequency * 2 / 3))
return false; return false;
if (freq < ENTRY_BLOCK_PTR->frequency / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION)) if (freq < ENTRY_BLOCK_PTR->frequency / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION))
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment