Introduce TV_INITIALIZE_RTL
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 20 May 2015 09:23:36 +0000 (09:23 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 20 May 2015 09:23:36 +0000 (09:23 +0000)
gcc/ChangeLog:
* timevar.def (TV_INITIALIZE_RTL): New.
* toplev.c (initialize_rtl): Use an auto_timevar to account this
function's time to TV_INITIALIZE_RTL.

From-SVN: r223436

gcc/ChangeLog
gcc/timevar.def
gcc/toplev.c

index 3c32a4a..5a77881 100644 (file)
@@ -1,3 +1,9 @@
+2015-05-20  David Malcolm  <dmalcolm@redhat.com>
+
+       * timevar.def (TV_INITIALIZE_RTL): New.
+       * toplev.c (initialize_rtl): Use an auto_timevar to account this
+       function's time to TV_INITIALIZE_RTL.
+
 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
 
        * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
index 711bbed..cf8f37d 100644 (file)
@@ -268,6 +268,7 @@ DEFTIMEVAR (TV_PLUGIN_RUN            , "plugin execution")
 DEFTIMEVAR (TV_GIMPLE_SLSR           , "straight-line strength reduction")
 DEFTIMEVAR (TV_VTABLE_VERIFICATION   , "vtable verification")
 DEFTIMEVAR (TV_TREE_UBSAN            , "tree ubsan")
+DEFTIMEVAR (TV_INITIALIZE_RTL        , "initialize rtl")
 
 /* Everything else in rest_of_compilation not included above.  */
 DEFTIMEVAR (TV_EARLY_LOCAL          , "early local passes")
index 1a65b62..c73368f 100644 (file)
@@ -1821,6 +1821,8 @@ static int rtl_initialized;
 void
 initialize_rtl (void)
 {
+  auto_timevar tv (TV_INITIALIZE_RTL);
+
   /* Initialization done just once per compilation, but delayed
      till code generation.  */
   if (!rtl_initialized)