diff options
author | Richard Guenther <rguenther@suse.de> | 2006-04-05 15:41:18 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-04-05 15:41:18 +0000 |
commit | cf51dca2373420bab52a54f5f807d166860165ed (patch) | |
tree | 3f427cf0d57c4edca9881cbc80bef6b0dc104d9e /gcc/ipa-inline.c | |
parent | 20762656fa2484fad3720aef6e08e2f13ef48821 (diff) | |
download | gcc-cf51dca2373420bab52a54f5f807d166860165ed.tar.gz |
re PR tree-optimization/26919 (ICE in cgraph_estimate_size_after_inlining with a large number of arguments)
2006-04-05 Richard Guenther <rguenther@suse.de>
PR tree-optimization/26919
* ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
to cgraph_estimate_size_after_inlining.
* gcc.dg/ipa/ipa-1.c: Use -fno-early-inlining.
* gcc.dg/ipa/ipa-2.c: Likewise.
* gcc.dg/ipa/ipa-3.c: Likewise.
* gcc.dg/ipa/ipa-5.c: Likewise.
From-SVN: r112709
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 4765b00ac90..53488473da0 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1077,7 +1077,7 @@ cgraph_decide_inlining_incrementally (struct cgraph_node *node, bool early) && !e->callee->local.disregard_inline_limits && !cgraph_recursive_inlining_p (node, e->callee, &e->inline_failed) && (!early - || (cgraph_estimate_size_after_inlining (1, e->caller, node) + || (cgraph_estimate_size_after_inlining (1, e->caller, e->callee) <= e->caller->global.insns)) && cgraph_check_inline_limits (node, e->callee, &e->inline_failed) && (DECL_SAVED_TREE (e->callee->decl) || e->callee->inline_decl)) |