diff options
author | Richard Biener <rguenther@suse.de> | 2016-08-18 10:41:53 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-08-18 10:41:53 +0000 |
commit | f02510201aff3a572f7c67fcce3ee90c127ecd76 (patch) | |
tree | 66731264e5aac24db0964fd44ab89db11412cc57 /gcc/tree-into-ssa.c | |
parent | 9c62c8735891bd29be0bc379b51b295f2838019a (diff) | |
download | gcc-f02510201aff3a572f7c67fcce3ee90c127ecd76.zip gcc-f02510201aff3a572f7c67fcce3ee90c127ecd76.tar.gz gcc-f02510201aff3a572f7c67fcce3ee90c127ecd76.tar.bz2 |
tree-pass.h (make_pass_materialize_all_clones): Declare.
2016-08-18 Richard Biener <rguenther@suse.de>
* tree-pass.h (make_pass_materialize_all_clones): Declare.
* ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
make_pass_materialize_all_clones): New simple IPA pass encapsulating
clone materialization.
* passes.def (all_late_ipa_passes): Start with
pass_materialize_all_clones.
* cgraphunit.c (symbol_table::compile): Remove call to
materialize_all_clones.
* tree-into-ssa.c: Include statistics.h.
(update_ssa): Count number of times we do incremental/rewrite
SSA update.
From-SVN: r239567
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 7ed9b9d..ceafa68 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-dfa.h" #include "tree-ssa.h" #include "domwalk.h" +#include "statistics.h" #define PERCENT(x,y) ((float)(x) * 100.0 / (float)(y)) @@ -3248,6 +3249,8 @@ update_ssa (unsigned update_flags) OLD_SSA_NAMES. */ if (bitmap_first_set_bit (new_ssa_names) >= 0) { + statistics_counter_event (cfun, "Incremental SSA update", 1); + prepare_names_to_update (insert_phi_p); /* If all the names in NEW_SSA_NAMES had been marked for @@ -3261,6 +3264,8 @@ update_ssa (unsigned update_flags) /* Next, determine the block at which to start the renaming process. */ if (cfun->gimple_df->ssa_renaming_needed) { + statistics_counter_event (cfun, "Symbol to SSA rewrite", 1); + /* If we rename bare symbols initialize the mapping to auxiliar info we need to keep track of. */ var_infos = new hash_table<var_info_hasher> (47); |