From: Giuliano Belinassi Date: Wed, 24 Jul 2019 19:10:36 +0000 (+0000) Subject: cgraphunit.c (symbol_table::compile): Start and stop TV_CGRAPH_IPA_PASSES and TV_CGRA... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=856bb3ef935edfa315bf4552a25493f11ee949b6;p=gcc.git cgraphunit.c (symbol_table::compile): Start and stop TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers. * cgraphunit.c (symbol_table::compile): Start and stop TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers. * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New. From-SVN: r273767 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c6ab1278d54..65495e2fce4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-24 Giuliano Belinassi + + * cgraphunit.c (symbol_table::compile): Start and stop + TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers. + * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New. + 2019-07-24 Oliver Browne * gimplify.c (flag_instrument_functions_exclude_p): Include diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 5999b9e0de8..cb08efeb5be 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -2613,8 +2613,11 @@ symbol_table::compile (void) /* Don't run the IPA passes if there was any error or sorry messages. */ if (!seen_error ()) + { + timevar_start (TV_CGRAPH_IPA_PASSES); ipa_passes (); - + timevar_stop (TV_CGRAPH_IPA_PASSES); + } /* Do nothing else if any IPA pass found errors or if we are just streaming LTO. */ if (seen_error () || ((!in_lto_p || flag_incremental_link == INCREMENTAL_LINK_LTO) @@ -2680,7 +2683,11 @@ symbol_table::compile (void) /* Output first asm statements and anything ordered. The process flag is cleared for these nodes, so we skip them later. */ output_in_order (); + + timevar_start (TV_CGRAPH_FUNC_EXPANSION); expand_all_functions (); + timevar_stop (TV_CGRAPH_FUNC_EXPANSION); + output_variables (); process_new_functions (); diff --git a/gcc/timevar.def b/gcc/timevar.def index 626ce493b76..3551a433b1f 100644 --- a/gcc/timevar.def +++ b/gcc/timevar.def @@ -68,6 +68,8 @@ DEFTIMEVAR (TV_PCH_CPP_RESTORE , "PCH preprocessor state restore") DEFTIMEVAR (TV_CGRAPH , "callgraph construction") DEFTIMEVAR (TV_CGRAPHOPT , "callgraph optimization") +DEFTIMEVAR (TV_CGRAPH_FUNC_EXPANSION , "callgraph functions expansion") +DEFTIMEVAR (TV_CGRAPH_IPA_PASSES , "callgraph ipa passes") DEFTIMEVAR (TV_IPA_FNSUMMARY , "ipa function summary") DEFTIMEVAR (TV_IPA_UNREACHABLE , "ipa dead code removal") DEFTIMEVAR (TV_IPA_INHERITANCE , "ipa inheritance graph")