re PR c++/35262 (FAIL: abi_check)

PR c++/35262
	* ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
	aggressive on inlining cold calls.

From-SVN: r132838
This commit is contained in:
Jan Hubicka 2008-03-03 17:20:31 +01:00 committed by Jan Hubicka
parent bf98ec6c84
commit 44682fabde
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-03-03 Jan Hubicka <jh@suse.cz>
PR c++/35262
* ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
aggressive on inlining cold calls.
2008-03-03 Richard Guenther <rguenther@suse.de>
* tree-ssa-sccvn.c (visit_reference_op_store): Do not insert

View File

@ -925,7 +925,7 @@ cgraph_decide_inlining_of_small_functions (void)
not_good = N_("function not declared inline and code size would grow");
if (optimize_size)
not_good = N_("optimizing for size and code size would grow");
if (not_good && growth > 0)
if (not_good && growth > 0 && cgraph_estimate_growth (edge->callee))
{
if (!cgraph_recursive_inlining_p (edge->caller, edge->callee,
&edge->inline_failed))