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 3c32a4afa9911c6476065786670c558c20ebfb44..5a77881bfb218f053a3f82ae6dcdb63bebc6b181 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 711bbedcdc9e202cd17af1b98eeb1158bab86c5e..cf8f37dd1e0bfb71232a72c5b51e7aa572fb1ae8 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 1a65b62c90b5e1cfdc03ce0250b3b86519ac0bbc..c73368f9fd4c7a317f1e491410412adffa7038e2 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)