diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/timevar.def | 1 | ||||
-rw-r--r-- | gcc/toplev.c | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c32a4a..5a77881 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/timevar.def b/gcc/timevar.def index 711bbed..cf8f37d 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 1a65b62..c73368f 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) |