summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-13 12:54:57 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-13 12:54:57 +0000
commit10694fa24afea13e15b01e139f1cd3e191062c55 (patch)
treed2ad875ff89b9da4d794288131abd4cb659df04a /gcc/ipa-inline.c
parent0cd3027d66dcdce791a63958364ec4cb18aa1711 (diff)
downloadgcc-10694fa24afea13e15b01e139f1cd3e191062c55.tar.gz
2011-12-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/51519 * ipa-inline.c (edge_badness): Use edge growth in non-guessed branch probability case as well. * gcc.dg/pr51519.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 3cb35e924c1..14bd89a67bc 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -861,7 +861,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
else
{
int nest = MIN (inline_edge_summary (edge)->loop_depth, 8);
- badness = estimate_growth (callee) * 256;
+ badness = growth * 256;
/* Decrease badness if call is nested. */
if (badness > 0)