diff options
author | Jan Hubicka <jh@suse.cz> | 2009-07-03 22:28:14 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-07-03 20:28:14 +0000 |
commit | ba8978d0f01676d2cc72bb1bac2d3bc54d8cf2e0 (patch) | |
tree | 39e5d8f9a8aea2d6224baf0734d83b9f2bb7d802 /gcc/ipa-inline.c | |
parent | d4289bdd6d7102d5fc10f782752ac8dbfae6883c (diff) | |
download | gcc-ba8978d0f01676d2cc72bb1bac2d3bc54d8cf2e0.zip gcc-ba8978d0f01676d2cc72bb1bac2d3bc54d8cf2e0.tar.gz gcc-ba8978d0f01676d2cc72bb1bac2d3bc54d8cf2e0.tar.bz2 |
ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing for size, reduce amount of inlining.
* ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
for size, reduce amount of inlining.
From-SVN: r149210
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 28f0ec9..040096f 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1504,7 +1504,8 @@ cgraph_decide_inlining_incrementally (struct cgraph_node *node, continue; } - if (cgraph_maybe_hot_edge_p (e) && leaf_node_p (e->callee)) + if (cgraph_maybe_hot_edge_p (e) && leaf_node_p (e->callee) + && optimize_function_for_speed_p (cfun)) allowed_growth = PARAM_VALUE (PARAM_EARLY_INLINING_INSNS); /* When the function body would grow and inlining the function won't |