diff options
author | Martin Liska <mliska@suse.cz> | 2017-05-23 16:39:11 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-05-23 14:39:11 +0000 |
commit | 464d01188e46ccdb19b4783c5d28ef6bc72d32f9 (patch) | |
tree | 5307a5518829adcac991e9a7bab2b1ded50a7a3c /gcc/ipa-reference.c | |
parent | 6c52831d98b00d02a3c11b46fbf80991ef0dc0fa (diff) | |
download | gcc-464d01188e46ccdb19b4783c5d28ef6bc72d32f9.zip gcc-464d01188e46ccdb19b4783c5d28ef6bc72d32f9.tar.gz gcc-464d01188e46ccdb19b4783c5d28ef6bc72d32f9.tar.bz2 |
Introduce symtab_node::dump_{asm_,}name functions.
2017-05-23 Martin Liska <mliska@suse.cz>
* cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
functions.
(cgraph_edge::make_speculative): Likewise.
(cgraph_edge::resolve_speculation): Likewise.
(cgraph_edge::redirect_call_stmt_to_callee): Likewise.
(cgraph_node::dump): Likewise.
* cgraph.h: Likewise.
* cgraphunit.c (analyze_functions): Likewise.
(symbol_table::compile): Likewise.
* ipa-cp.c (print_all_lattices): Likewise.
(determine_versionability): Likewise.
(initialize_node_lattices): Likewise.
(ipcp_verify_propagated_values): Likewise.
(estimate_local_effects): Likewise.
(update_profiling_info): Likewise.
(create_specialized_node): Likewise.
(perhaps_add_new_callers): Likewise.
(decide_about_value): Likewise.
(decide_whether_version_node): Likewise.
(identify_dead_nodes): Likewise.
(ipcp_store_bits_results): Likewise.
* ipa-devirt.c (dump_targets): Likewise.
(ipa_devirt): Likewise.
* ipa-icf.c (sem_item::dump): Likewise.
(sem_function::equals): Likewise.
(sem_variable::equals): Likewise.
(sem_item_optimizer::read_section): Likewise.
(sem_item_optimizer::execute): Likewise.
(congruence_class::dump): Likewise.
* ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
(dump_inline_summary): Likewise.
(estimate_node_size_and_time): Likewise.
(inline_analyze_function): Likewise.
* ipa-inline-transform.c (inline_call): Likewise.
* ipa-inline.c (report_inline_failed_reason): Likewise.
(want_early_inline_function_p): Likewise.
(edge_badness): Likewise.
(update_edge_key): Likewise.
(inline_small_functions): Likewise.
* ipa-profile.c (ipa_profile): Likewise.
* ipa-prop.c (ipa_print_node_jump_functions): Likewise.
(ipa_make_edge_direct_to_target): Likewise.
(remove_described_reference): Likewise.
(ipa_impossible_devirt_target): Likewise.
(propagate_controlled_uses): Likewise.
(ipa_print_node_params): Likewise.
(ipcp_transform_function): Likewise.
* ipa-pure-const.c (pure_const_read_summary): Likewise.
(propagate_pure_const): Likewise.
* ipa-reference.c (generate_summary): Likewise.
(read_write_all_from_decl): Likewise.
(propagate): Likewise.
(ipa_reference_read_optimization_summary): Likewise.
* ipa-utils.c (ipa_merge_profiles): Likewise.
* ipa.c (walk_polymorphic_call_targets): Likewise.
(symbol_table::remove_unreachable_nodes): Likewise.
(ipa_single_use): Likewise.
* passes.c (execute_todo): Likewise.
* predict.c (drop_profile): Likewise.
* symtab.c (symtab_node::get_dump_name): New function.
(symtab_node::dump_name): Likewise.
(symtab_node::dump_asm_name): Likewise.
(symtab_node::dump_references): Likewise.
(symtab_node::dump_referring): Likewise.
(symtab_node::dump_base): Likewise.
(symtab_node::debug_symtab): Likewise.
* tree-sra.c (convert_callers_for_node): Likewise.
* tree-ssa-structalias.c (ipa_pta_execute): Likewise.
* value-prof.c (init_node_map): Likewise.
2017-05-23 Martin Liska <mliska@suse.cz>
* lto-symtab.c (lto_cgraph_replace_node): Use
symtab_node::dump_{asm_,}name functions.
* lto.c (read_cgraph_and_symbols): Likewise.
(do_whole_program_analysis): Likewise.
From-SVN: r248369
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r-- | gcc/ipa-reference.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c index 2222539..45c2e3f 100644 --- a/gcc/ipa-reference.c +++ b/gcc/ipa-reference.c @@ -599,8 +599,7 @@ generate_summary (void) l = &get_reference_vars_info (node)->local; fprintf (dump_file, - "\nFunction name:%s/%i:", - node->asm_name (), node->order); + "\nFunction name:%s:", node->dump_name ()); fprintf (dump_file, "\n locals read: "); if (l->statics_read) EXECUTE_IF_SET_IN_BITMAP (l->statics_read, @@ -636,8 +635,7 @@ read_write_all_from_decl (struct cgraph_node *node, { read_all = true; if (dump_file && (dump_flags & TDF_DETAILS)) - fprintf (dump_file, " %s/%i -> read all\n", - node->asm_name (), node->order); + fprintf (dump_file, " %s -> read all\n", node->dump_name ()); } else { @@ -646,8 +644,8 @@ read_write_all_from_decl (struct cgraph_node *node, read_all = true; write_all = true; if (dump_file && (dump_flags & TDF_DETAILS)) - fprintf (dump_file, " %s/%i -> read all, write all\n", - node->asm_name (), node->order); + fprintf (dump_file, " %s -> read all, write all\n", + node->dump_name ()); } } @@ -754,8 +752,7 @@ propagate (void) node_g = &node_info->global; if (dump_file && (dump_flags & TDF_DETAILS)) - fprintf (dump_file, "Starting cycle with %s/%i\n", - node->asm_name (), node->order); + fprintf (dump_file, "Starting cycle with %s\n", node->dump_name ()); vec<cgraph_node *> cycle_nodes = ipa_get_nodes_in_cycle (node); @@ -763,8 +760,7 @@ propagate (void) FOR_EACH_VEC_ELT (cycle_nodes, x, w) { if (dump_file && (dump_flags & TDF_DETAILS)) - fprintf (dump_file, " Visiting %s/%i\n", - w->asm_name (), w->order); + fprintf (dump_file, " Visiting %s\n", w->dump_asm_name ()); get_read_write_all_from_node (w, read_all, write_all); if (read_all && write_all) break; @@ -826,9 +822,7 @@ propagate (void) if (node->alias || !opt_for_fn (node->decl, flag_ipa_reference)) continue; - fprintf (dump_file, - "\nFunction name:%s/%i:", - node->asm_name (), node->order); + fprintf (dump_file, "\nFunction name:%s:", node->dump_asm_name ()); ipa_reference_vars_info_t node_info = get_reference_vars_info (node); ipa_reference_global_vars_info_t node_g = &node_info->global; @@ -839,8 +833,7 @@ propagate (void) ipa_reference_vars_info_t w_ri = get_reference_vars_info (w); ipa_reference_local_vars_info_t w_l = &w_ri->local; if (w != node) - fprintf (dump_file, "\n next cycle: %s/%i ", - w->asm_name (), w->order); + fprintf (dump_file, "\n next cycle: %s ", w->dump_asm_name ()); fprintf (dump_file, "\n locals read: "); dump_static_vars_set_to_file (dump_file, w_l->statics_read); fprintf (dump_file, "\n locals written: "); @@ -1120,8 +1113,8 @@ ipa_reference_read_optimization_summary (void) info->statics_not_written = BITMAP_ALLOC (&optimization_summary_obstack); if (dump_file) fprintf (dump_file, - "\nFunction name:%s/%i:\n static not read:", - node->asm_name (), node->order); + "\nFunction name:%s:\n static not read:", + node->dump_asm_name ()); /* Set the statics not read. */ v_count = streamer_read_hwi (ib); |