diff options
author | Richard Guenther <rguenther@suse.de> | 2011-12-13 12:54:57 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-12-13 12:54:57 +0000 |
commit | a5c3d18c25527d20882a575274f2a06a73f54863 (patch) | |
tree | d2ad875ff89b9da4d794288131abd4cb659df04a /gcc/ipa-inline.c | |
parent | 4634c03b7253ad80fcec0435307a9e67a30cd5f4 (diff) | |
download | gcc-a5c3d18c25527d20882a575274f2a06a73f54863.zip gcc-a5c3d18c25527d20882a575274f2a06a73f54863.tar.gz gcc-a5c3d18c25527d20882a575274f2a06a73f54863.tar.bz2 |
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 <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.
From-SVN: r182279
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |