From: Jan Hubicka Date: Sun, 30 May 2010 23:36:18 +0000 (+0200) Subject: * predict.c (maybe_hot_edge_p): Calls to functions called once is cold. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22983f55de9d34ab73af4d2a257f65b7f2f0db4d;p=gcc.git * predict.c (maybe_hot_edge_p): Calls to functions called once is cold. From-SVN: r160061 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 986aacee4e6..f21ba34e4f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-05-30 Jan Hubicka + + * predict.c (maybe_hot_edge_p): Calls to functions called once is cold. + 2010-05-30 Richard Guenther PR lto/42975 diff --git a/gcc/predict.c b/gcc/predict.c index 29e0e2fcd99..1bccd4d2c26 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -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)