* predict.c (maybe_hot_edge_p): Calls to functions called once is cold.

From-SVN: r160061
This commit is contained in:
Jan Hubicka 2010-05-31 01:36:18 +02:00 committed by Jan Hubicka
parent 7a08eda161
commit 22983f55de
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-05-30 Jan Hubicka <jh@suse.cz>
* predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
2010-05-30 Richard Guenther <rguenther@suse.de>
PR lto/42975

View File

@ -168,6 +168,9 @@ cgraph_maybe_hot_edge_p (struct cgraph_edge *edge)
if (edge->caller->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED
|| edge->callee->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED)
return false;
if (edge->caller->frequency > NODE_FREQUENCY_UNLIKELY_EXECUTED
&& edge->callee->frequency <= NODE_FREQUENCY_EXECUTED_ONCE)
return false;
if (optimize_size)
return false;
if (edge->caller->frequency == NODE_FREQUENCY_HOT)