Commit 22983f55 by Jan Hubicka Committed by Jan Hubicka

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

From-SVN: r160061
parent 7a08eda1
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
......
......@@ -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)
......
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