diff options
author | Jan Hubicka <jh@suse.cz> | 2005-11-15 13:27:33 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-11-15 12:27:33 +0000 |
commit | b4f32d07aa53d6831a12a7aabb1c74ee4e7ba269 (patch) | |
tree | 5444bc2a19f6cd64c6e05a03f3b4f3348997cbdc /gcc/ipa-inline.c | |
parent | 4a60d778fa9157187c3504021935389e2f22fed8 (diff) | |
download | gcc-b4f32d07aa53d6831a12a7aabb1c74ee4e7ba269.zip gcc-b4f32d07aa53d6831a12a7aabb1c74ee4e7ba269.tar.gz gcc-b4f32d07aa53d6831a12a7aabb1c74ee4e7ba269.tar.bz2 |
invoke.texi (large-unit-insns): Document.
* invoke.texi (large-unit-insns): Document.
* ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
* params.def (large-unit-insns): New param.
* gcc.dg/winline-5.c: Add large-unit-insns limit.
From-SVN: r106948
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 9e42dcf..c16e947 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -877,7 +877,11 @@ cgraph_decide_inlining (void) overall_insns = initial_insns; gcc_assert (!max_count || (profile_info && flag_branch_probabilities)); - max_insns = ((HOST_WIDEST_INT) overall_insns + max_insns = overall_insns; + if (max_insns < PARAM_VALUE (PARAM_LARGE_UNIT_INSNS)) + max_insns = PARAM_VALUE (PARAM_LARGE_UNIT_INSNS); + + max_insns = ((HOST_WIDEST_INT) max_insns * (100 + PARAM_VALUE (PARAM_INLINE_UNIT_GROWTH)) / 100); nnodes = cgraph_postorder (order); |