From a5c3d18c25527d20882a575274f2a06a73f54863 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 13 Dec 2011 12:54:57 +0000 Subject: re PR tree-optimization/51519 (ICE: in inline_small_functions, at ipa-inline.c:1410 with -O -fno-guess-branch-probability -findirect-inlining) 2011-12-13 Richard Guenther 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. From-SVN: r182279 --- gcc/ipa-inline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ipa-inline.c') diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 3cb35e9..14bd89a 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) -- cgit v1.1