opts.c (decode_options): Enable unit-at-a-time at -O2.
authorJan Hubicka <jh@suse.cz>
Fri, 5 Sep 2003 05:36:47 +0000 (07:36 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 5 Sep 2003 05:36:47 +0000 (05:36 +0000)
* 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

gcc/ChangeLog
gcc/doc/invoke.texi
gcc/opts.c
gcc/params.def

index 92437ba59e877cabbb5e0e8179857ffebb45aad2..fe1f21b424bd1e69f1555796eb055b6a9a9e76e0 100644 (file)
@@ -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 ...
index 4ca859bf0c9345eeb2c1de4b1694bf310b38d42e..db31657dea97209566c2b86030f564f96cb52ce3 100644 (file)
@@ -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 
index fe8d28f560470b27e602474438c3231ea623329a..c4c5b9fd414afef95947905c05b3f394e570f7eb 100644 (file)
@@ -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)
index 1d50e2b1a04d1d9538dc0cb4b95750cf45992b74..c5dfca864d52ec66f37cd5d179997b6416a44a49 100644 (file)
@@ -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)