+2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
+
+ * 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 <oliverbrowne62@gmail.com>
* gimplify.c (flag_instrument_functions_exclude_p): Include
/* 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)
/* 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 ();
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")