From: David Malcolm Date: Wed, 20 May 2015 09:23:36 +0000 (+0000) Subject: Introduce TV_INITIALIZE_RTL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42242005dcaeda1b553cd877358abeae032c5b2d;p=gcc.git Introduce TV_INITIALIZE_RTL 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c32a4afa99..5a77881bfb2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-20 David Malcolm + + * 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 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless diff --git a/gcc/timevar.def b/gcc/timevar.def index 711bbedcdc9..cf8f37dd1e0 100644 --- a/gcc/timevar.def +++ b/gcc/timevar.def @@ -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") diff --git a/gcc/toplev.c b/gcc/toplev.c index 1a65b62c90b..c73368f9fd4 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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)