Commit 1f95c733 by Jan Hubicka Committed by Jan Hubicka

opts.c (decode_options): Enable unit-at-a-time at -O2.


	* opts.c (decode_options): Enable unit-at-a-time at -O2.
	* params.def (max-inline-insns-single): Set to 500
	(max-inline-insns-auto): Set to 150
	* invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.

From-SVN: r71105
parent 8dafba3c
Fri Sep 5 07:35:16 CEST 2003 Jan Hubicka <jh@suse.cz>
* opts.c (decode_options): Enable unit-at-a-time at -O2.
* params.def (max-inline-insns-single): Set to 500
(max-inline-insns-auto): Set to 150
* invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
2003-09-04 Richard Henderson <rth@redhat.com> 2003-09-04 Richard Henderson <rth@redhat.com>
* cgraph.c (cgraph_mark_reachable_node): Split out from ... * cgraph.c (cgraph_mark_reachable_node): Split out from ...
......
...@@ -4591,7 +4591,7 @@ This number sets the maximum number of instructions (counted in gcc's ...@@ -4591,7 +4591,7 @@ This number sets the maximum number of instructions (counted in gcc's
internal representation) in a single function that the tree inliner internal representation) in a single function that the tree inliner
will consider for inlining. This only affects functions declared will consider for inlining. This only affects functions declared
inline and methods implemented in a class declaration (C++). inline and methods implemented in a class declaration (C++).
The default value is 100. The default value is 500.
@item max-inline-insns-auto @item max-inline-insns-auto
When you use @option{-finline-functions} (included in @option{-O3}), When you use @option{-finline-functions} (included in @option{-O3}),
...@@ -4599,7 +4599,7 @@ a lot of functions that would otherwise not be considered for inlining ...@@ -4599,7 +4599,7 @@ a lot of functions that would otherwise not be considered for inlining
by the compiler will be investigated. To those functions, a different by the compiler will be investigated. To those functions, a different
(more restrictive) limit compared to functions declared inline can (more restrictive) limit compared to functions declared inline can
be applied. be applied.
The default value is 100. The default value is 150.
@item max-inline-insns @item max-inline-insns
The tree inliner does decrease the allowable size for single functions The tree inliner does decrease the allowable size for single functions
......
...@@ -556,6 +556,7 @@ decode_options (unsigned int argc, const char **argv) ...@@ -556,6 +556,7 @@ decode_options (unsigned int argc, const char **argv)
flag_delete_null_pointer_checks = 1; flag_delete_null_pointer_checks = 1;
flag_reorder_blocks = 1; flag_reorder_blocks = 1;
flag_reorder_functions = 1; flag_reorder_functions = 1;
flag_unit_at_a_time = 1;
} }
if (optimize >= 3) if (optimize >= 3)
...@@ -563,7 +564,6 @@ decode_options (unsigned int argc, const char **argv) ...@@ -563,7 +564,6 @@ decode_options (unsigned int argc, const char **argv)
flag_inline_functions = 1; flag_inline_functions = 1;
flag_rename_registers = 1; flag_rename_registers = 1;
flag_unswitch_loops = 1; flag_unswitch_loops = 1;
flag_unit_at_a_time = 1;
} }
if (optimize < 2 || optimize_size) if (optimize < 2 || optimize_size)
......
...@@ -51,7 +51,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -51,7 +51,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE, DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
"max-inline-insns-single", "max-inline-insns-single",
"The maximum number of instructions in a single function eligible for inlining", "The maximum number of instructions in a single function eligible for inlining",
100) 500)
/* The single function inlining limit for functions that are /* The single function inlining limit for functions that are
inlined by virtue of -finline-functions (-O3). inlined by virtue of -finline-functions (-O3).
...@@ -63,7 +63,7 @@ DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE, ...@@ -63,7 +63,7 @@ DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
DEFPARAM (PARAM_MAX_INLINE_INSNS_AUTO, DEFPARAM (PARAM_MAX_INLINE_INSNS_AUTO,
"max-inline-insns-auto", "max-inline-insns-auto",
"The maximum number of instructions when automatically inlining", "The maximum number of instructions when automatically inlining",
100) 150)
/* The repeated inlining limit. After this number of instructions /* The repeated inlining limit. After this number of instructions
(in the internal gcc representation, not real machine instructions) (in the internal gcc representation, not real machine instructions)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment