Set inline-unit-growth to 30

Jan Hubicka jh@suse.cz
Fri Feb 9 23:43:00 GMT 2007


Hi,
as described in the previous mail, the inliner heuristic is now able to
decide better on what function calls are profitable and with early
inlining also get around the abstraction more realistically. As a
result, the inline unit growth can be reduced now resulting in important
code size and compilation time savings for huge compilation units.

There are small known regressions in botan testcase and I hope can be
dealt with by DSE and other improvements, but the patch is causing
almost consistent improvements overall.

I've bootstrapped/regtested and comitted the following

Honza

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 121780)
+++ ChangeLog	(working copy)
@@ -1,5 +1,8 @@
 2007-02-09  Jan Hubicka  <jh@suse.cz>
 
+	* params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
+	* doc/invoke.texi (inline-unit-growth): Update default value.
+
 	* Makefile.in (passes.o, ipa-inline.o): Add dependencies.
 	* cgraphbuild.c (build_cgraph_edges): Compute frequencies.
 	(rebuild_cgraph_edges): Likewise.
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi	(revision 121779)
+++ doc/invoke.texi	(working copy)
@@ -6159,7 +6159,7 @@ before applying @option{--param inline-u
 @item inline-unit-growth
 Specifies maximal overall growth of the compilation unit caused by inlining.
 This parameter is ignored when @option{-funit-at-a-time} is not used.
-The default value is 60 which limits unit growth to 1.6 times the original
+The default value is 30 which limits unit growth to 1.3 times the original
 size.
 
 @item large-stack-frame
Index: params.def
===================================================================
--- params.def	(revision 121779)
+++ params.def	(working copy)
@@ -199,7 +199,7 @@ DEFPARAM(PARAM_LARGE_UNIT_INSNS,
 DEFPARAM(PARAM_INLINE_UNIT_GROWTH,
 	 "inline-unit-growth",
 	 "how much can given compilation unit grow because of the inlining (in percent)",
-	 60, 0, 0)
+	 30, 0, 0)
 DEFPARAM(PARAM_INLINE_CALL_COST,
 	 "inline-call-cost",
 	 "expense of call operation relative to ordinary arithmetic operations",



More information about the Gcc-patches mailing list