diff options
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index ef99060..8045e34 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -1071,8 +1071,6 @@ insert_phi_nodes (bitmap_head *dfs) unsigned i; var_info *info; - timevar_push (TV_TREE_INSERT_PHI_NODES); - /* When the gimplifier introduces SSA names it cannot easily avoid situations where abnormal edges added by CFG construction break the use-def dominance requirement. For this case rewrite SSA @@ -1141,8 +1139,6 @@ insert_phi_nodes (bitmap_head *dfs) insert_phi_nodes_for (info->var, idf, false); BITMAP_FREE (idf); } - - timevar_pop (TV_TREE_INSERT_PHI_NODES); } @@ -1642,14 +1638,11 @@ debug_defs_stack (int n) void dump_currdefs (FILE *file) { - unsigned i; - tree var; - if (symbols_to_rename.is_empty ()) return; fprintf (file, "\n\nCurrent reaching definitions\n\n"); - FOR_EACH_VEC_ELT (symbols_to_rename, i, var) + for (tree var : symbols_to_rename) { common_info *info = get_common_info (var); fprintf (file, "CURRDEF ("); @@ -2073,18 +2066,16 @@ rewrite_update_phi_arguments (basic_block bb) { edge e; edge_iterator ei; - unsigned i; FOR_EACH_EDGE (e, ei, bb->succs) { - gphi *phi; vec<gphi *> phis; if (!bitmap_bit_p (blocks_with_phis_to_rewrite, e->dest->index)) continue; phis = phis_to_rewrite[e->dest->index]; - FOR_EACH_VEC_ELT (phis, i, phi) + for (gphi *phi : phis) { tree arg, lhs_sym, reaching_def = NULL; use_operand_p arg_p; @@ -2282,9 +2273,6 @@ rewrite_update_dom_walker::after_dom_children (basic_block bb ATTRIBUTE_UNUSED) static void rewrite_blocks (basic_block entry, enum rewrite_mode what) { - /* Rewrite all the basic blocks in the program. */ - timevar_push (TV_TREE_SSA_REWRITE_BLOCKS); - block_defs_stack.create (10); /* Recursively walk the dominator tree rewriting each statement in @@ -2305,8 +2293,6 @@ rewrite_blocks (basic_block entry, enum rewrite_mode what) } block_defs_stack.release (); - - timevar_pop (TV_TREE_SSA_REWRITE_BLOCKS); } class mark_def_dom_walker : public dom_walker @@ -2402,7 +2388,7 @@ const pass_data pass_data_build_ssa = GIMPLE_PASS, /* type */ "ssa", /* name */ OPTGROUP_NONE, /* optinfo_flags */ - TV_TREE_SSA_OTHER, /* tv_id */ + TV_TREE_INTO_SSA, /* tv_id */ PROP_cfg, /* properties_required */ PROP_ssa, /* properties_provided */ 0, /* properties_destroyed */ |