diff options
author | Martin Liska <mliska@suse.cz> | 2020-01-08 16:30:24 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2020-01-08 15:30:24 +0000 |
commit | 3629ff8ad6b73b35f4168df465f47f5a302691e2 (patch) | |
tree | 0b3518f6ff58c9f238c2250a493977778aeae5ab /gcc/ipa-pure-const.c | |
parent | c1030b5cd3c99f548b08b752a711f7cb59a6d92e (diff) | |
download | gcc-3629ff8ad6b73b35f4168df465f47f5a302691e2.zip gcc-3629ff8ad6b73b35f4168df465f47f5a302691e2.tar.gz gcc-3629ff8ad6b73b35f4168df465f47f5a302691e2.tar.bz2 |
Use cgraph_node::dump_{asm_},name where possible.
2020-01-08 Martin Liska <mliska@suse.cz>
* cgraph.c (cgraph_node::dump): Use ::dump_name or
::dump_asm_name instead of (::name or ::asm_name).
* cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
* cgraphunit.c (walk_polymorphic_call_targets): Likewise.
(analyze_functions): Likewise.
(expand_all_functions): Likewise.
* ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
(propagate_bits_across_jump_function): Likewise.
(dump_profile_updates): Likewise.
(ipcp_store_bits_results): Likewise.
(ipcp_store_vr_results): Likewise.
* ipa-devirt.c (dump_targets): Likewise.
* ipa-fnsummary.c (analyze_function_body): Likewise.
* ipa-hsa.c (check_warn_node_versionable): Likewise.
(process_hsa_functions): Likewise.
* ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
(set_alias_uids): Likewise.
* ipa-inline-transform.c (save_inline_function_body): Likewise.
* ipa-inline.c (recursive_inlining): Likewise.
(inline_to_all_callers_1): Likewise.
(ipa_inline): Likewise.
* ipa-profile.c (ipa_propagate_frequency_1): Likewise.
(ipa_propagate_frequency): Likewise.
* ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
(remove_described_reference): Likewise.
* ipa-pure-const.c (worse_state): Likewise.
(check_retval_uses): Likewise.
(analyze_function): Likewise.
(propagate_pure_const): Likewise.
(propagate_nothrow): Likewise.
(dump_malloc_lattice): Likewise.
(propagate_malloc): Likewise.
(pass_local_pure_const::execute): Likewise.
* ipa-visibility.c (optimize_weakref): Likewise.
(function_and_variable_visibility): Likewise.
* ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
(ipa_discover_variable_flags): Likewise.
* lto-streamer-out.c (output_function): Likewise.
(output_constructor): Likewise.
* tree-inline.c (copy_bb): Likewise.
* tree-ssa-structalias.c (ipa_pta_execute): Likewise.
* varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
2020-01-08 Martin Liska <mliska@suse.cz>
* lto-partition.c (add_symbol_to_partition_1): Use ::dump_name or
::dump_asm_name instead of (::name or ::asm_name).
(lto_balanced_map): Likewise.
(promote_symbol): Likewise.
(rename_statics): Likewise.
* lto.c (lto_wpa_write_files): Likewise.
2020-01-08 Martin Liska <mliska@suse.cz>
* gcc.dg/ipa/ipa-icf-1.c: Update expected scanned output.
* gcc.dg/ipa/ipa-icf-10.c: Likewise.
* gcc.dg/ipa/ipa-icf-11.c: Likewise.
* gcc.dg/ipa/ipa-icf-12.c: Likewise.
* gcc.dg/ipa/ipa-icf-13.c: Likewise.
* gcc.dg/ipa/ipa-icf-16.c: Likewise.
* gcc.dg/ipa/ipa-icf-18.c: Likewise.
* gcc.dg/ipa/ipa-icf-2.c: Likewise.
* gcc.dg/ipa/ipa-icf-20.c: Likewise.
* gcc.dg/ipa/ipa-icf-21.c: Likewise.
* gcc.dg/ipa/ipa-icf-23.c: Likewise.
* gcc.dg/ipa/ipa-icf-25.c: Likewise.
* gcc.dg/ipa/ipa-icf-26.c: Likewise.
* gcc.dg/ipa/ipa-icf-27.c: Likewise.
* gcc.dg/ipa/ipa-icf-3.c: Likewise.
* gcc.dg/ipa/ipa-icf-35.c: Likewise.
* gcc.dg/ipa/ipa-icf-36.c: Likewise.
* gcc.dg/ipa/ipa-icf-37.c: Likewise.
* gcc.dg/ipa/ipa-icf-38.c: Likewise.
* gcc.dg/ipa/ipa-icf-5.c: Likewise.
* gcc.dg/ipa/ipa-icf-7.c: Likewise.
* gcc.dg/ipa/ipa-icf-8.c: Likewise.
* gcc.dg/ipa/ipa-icf-merge-1.c: Likewise.
* gcc.dg/ipa/pr64307.c: Likewise.
* gcc.dg/ipa/pr90555.c: Likewise.
* gcc.dg/ipa/propmalloc-1.c: Likewise.
* gcc.dg/ipa/propmalloc-2.c: Likewise.
* gcc.dg/ipa/propmalloc-3.c: Likewise.
From-SVN: r280009
Diffstat (limited to 'gcc/ipa-pure-const.c')
-rw-r--r-- | gcc/ipa-pure-const.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index 4c3dcf3..ccd0918 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -500,7 +500,7 @@ worse_state (enum pure_const_state_e *state, bool *looping, { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Dropping state to PURE because call to %s may not " - "bind to current def.\n", to->name ()); + "bind to current def.\n", to->dump_name ()); state2 = IPA_PURE; } *state = MAX (*state, state2); @@ -874,7 +874,7 @@ check_retval_uses (tree retval, gimple *stmt) { \ if (dump_file && (dump_flags & TDF_DETAILS)) \ fprintf (dump_file, "\n%s is not a malloc candidate, reason: %s\n", \ - (node->name()), (reason)); \ + (node->dump_name ()), (reason)); \ return false; \ } @@ -1037,7 +1037,7 @@ analyze_function (struct cgraph_node *fn, bool ipa) if (dump_file) { fprintf (dump_file, "\n\n local analysis of %s\n ", - fn->name ()); + fn->dump_name ()); } push_cfun (DECL_STRUCT_FUNCTION (decl)); @@ -1657,7 +1657,7 @@ propagate_pure_const (void) w->nonfreeing_fn = !can_free; if (!can_free && dump_file) fprintf (dump_file, "Function found not to call free: %s\n", - w->name ()); + w->dump_name ()); if (w_l->state_previously_known != IPA_NEITHER && this_state > w_l->state_previously_known) @@ -1688,7 +1688,7 @@ propagate_pure_const (void) if (dump_file) fprintf (dump_file, "Function found to be %sconst: %s\n", this_looping ? "looping " : "", - w->name ()); + w->dump_name ()); } /* Turning constructor or destructor to non-looping const/pure enables us to possibly remove the function completely. */ @@ -1703,7 +1703,7 @@ propagate_pure_const (void) fprintf (dump_file, "Declaration updated to be %sconst: %s\n", this_looping ? "looping " : "", - w->name ()); + w->dump_name ()); remove_p |= has_cdtor; } break; @@ -1715,7 +1715,7 @@ propagate_pure_const (void) if (dump_file) fprintf (dump_file, "Function found to be %spure: %s\n", this_looping ? "looping " : "", - w->name ()); + w->dump_name ()); } if (this_looping) has_cdtor = false; @@ -1728,7 +1728,7 @@ propagate_pure_const (void) fprintf (dump_file, "Declaration updated to be %spure: %s\n", this_looping ? "looping " : "", - w->name ()); + w->dump_name ()); remove_p |= has_cdtor; } break; @@ -1844,7 +1844,7 @@ propagate_nothrow (void) w->set_nothrow_flag (true); if (dump_file) fprintf (dump_file, "Function found to be nothrow: %s\n", - w->name ()); + w->dump_name ()); } } else if (can_throw && !TREE_NOTHROW (w->decl)) @@ -1873,7 +1873,7 @@ dump_malloc_lattice (FILE *dump_file, const char *s) { funct_state fs = funct_state_summaries->get (node); if (fs) - fprintf (dump_file, "%s: %s\n", node->name (), + fprintf (dump_file, "%s: %s\n", node->dump_name (), malloc_state_names[fs->malloc_state]); } } @@ -1970,7 +1970,7 @@ propagate_malloc (void) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Function %s found to be malloc\n", - node->name ()); + node->dump_name ()); bool malloc_decl_p = DECL_IS_MALLOC (node->decl); node->set_malloc_flag (true); @@ -2199,7 +2199,7 @@ pass_local_pure_const::execute (function *fun) changed = true; if (dump_file) fprintf (dump_file, "Function found to be malloc: %s\n", - node->name ()); + node->dump_name ()); } free (l); |