diff options
author | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2019-07-24 19:10:36 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2019-07-24 13:10:36 -0600 |
commit | 856bb3ef935edfa315bf4552a25493f11ee949b6 (patch) | |
tree | c976a4dde08e85c92db84e958fb1cc71413e6652 /gcc/cgraphunit.c | |
parent | efab3e3a7326ad503532955ccd31f953851e388a (diff) | |
download | gcc-856bb3ef935edfa315bf4552a25493f11ee949b6.zip gcc-856bb3ef935edfa315bf4552a25493f11ee949b6.tar.gz gcc-856bb3ef935edfa315bf4552a25493f11ee949b6.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 5999b9e..cb08efe 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 (); |