mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 16:23:56 +08:00
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
This commit is contained in:
parent
8dafba3ca4
commit
1f95c73329
@ -1,3 +1,10 @@
|
||||
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>
|
||||
|
||||
* 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
|
||||
internal representation) in a single function that the tree inliner
|
||||
will consider for inlining. This only affects functions declared
|
||||
inline and methods implemented in a class declaration (C++).
|
||||
The default value is 100.
|
||||
The default value is 500.
|
||||
|
||||
@item max-inline-insns-auto
|
||||
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
|
||||
by the compiler will be investigated. To those functions, a different
|
||||
(more restrictive) limit compared to functions declared inline can
|
||||
be applied.
|
||||
The default value is 100.
|
||||
The default value is 150.
|
||||
|
||||
@item max-inline-insns
|
||||
The tree inliner does decrease the allowable size for single functions
|
||||
|
@ -556,6 +556,7 @@ decode_options (unsigned int argc, const char **argv)
|
||||
flag_delete_null_pointer_checks = 1;
|
||||
flag_reorder_blocks = 1;
|
||||
flag_reorder_functions = 1;
|
||||
flag_unit_at_a_time = 1;
|
||||
}
|
||||
|
||||
if (optimize >= 3)
|
||||
@ -563,7 +564,6 @@ decode_options (unsigned int argc, const char **argv)
|
||||
flag_inline_functions = 1;
|
||||
flag_rename_registers = 1;
|
||||
flag_unswitch_loops = 1;
|
||||
flag_unit_at_a_time = 1;
|
||||
}
|
||||
|
||||
if (optimize < 2 || optimize_size)
|
||||
|
@ -51,7 +51,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
|
||||
"max-inline-insns-single",
|
||||
"The maximum number of instructions in a single function eligible for inlining",
|
||||
100)
|
||||
500)
|
||||
|
||||
/* The single function inlining limit for functions that are
|
||||
inlined by virtue of -finline-functions (-O3).
|
||||
@ -63,7 +63,7 @@ DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
|
||||
DEFPARAM (PARAM_MAX_INLINE_INSNS_AUTO,
|
||||
"max-inline-insns-auto",
|
||||
"The maximum number of instructions when automatically inlining",
|
||||
100)
|
||||
150)
|
||||
|
||||
/* The repeated inlining limit. After this number of instructions
|
||||
(in the internal gcc representation, not real machine instructions)
|
||||
|
Loading…
Reference in New Issue
Block a user