diff options
author | Martin Jambor <mjambor@suse.cz> | 2013-05-15 12:35:59 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2013-05-15 12:35:59 +0200 |
commit | 9de04252a07c04a9676de3c8606b0a29e66a23ce (patch) | |
tree | 58c9805dc7bf2a381e5910b508a1fe957bbb0de5 /gcc/ipa-cp.c | |
parent | 1dd03b91ccae183b0b313cc0a54953dfc621951a (diff) | |
download | gcc-9de04252a07c04a9676de3c8606b0a29e66a23ce.zip gcc-9de04252a07c04a9676de3c8606b0a29e66a23ce.tar.gz gcc-9de04252a07c04a9676de3c8606b0a29e66a23ce.tar.bz2 |
ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in header...
2013-05-15 Martin Jambor <mjambor@suse.cz>
* ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
header, print symbol order instead of node uid, print more information
about indirect edge targets.
(ipa_make_edge_direct_to_target): Print symbol order instead of node
uids.
(ipa_make_edge_direct_to_target): Likewise.
(remove_described_reference): Likewise.
(propagate_controlled_uses): Likewise.
(ipa_print_node_params): Also print symbol order.
(ipcp_transform_function): Print symbol order instead of node uids.
* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
(cgraph_get_create_real_symbol_node): Likewise.
* ipa-cp.c (print_lattice): Likewise.
(print_all_lattices): Likewise.
(determine_versionability): Likewise.
(initialize_node_lattices): 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.
* ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
(dump_inline_summary): Likewise.
(estimate_node_size_and_time): Likewise.
(inline_analyze_function): 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. Add dumping of order to two other
dumps.
* ipa-pure-const.c (pure_const_read_summary): Print symbol order
instead of node uids.
(propagate_pure_const): Likewise.
(propagate_pure_const): Likewise.
* ipa-utils.c (dump_cgraph_node_set): Likewise.
* lto-cgraph.c (input_node): Explicitly specify we dump uid.
* lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
of node uids.
* tree-pretty-print.c (dump_function_header): Likewise.
* tree-sra.c (convert_callers_for_node): Dump in traditional format.
Print symbol order instead of node uids.
lto/
* lto-partition.c (lto_balanced_map): Print symbol order instead
of node uids.
From-SVN: r198925
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 98c91ef..40c946d 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -369,7 +369,8 @@ print_lattice (FILE * f, struct ipcp_lattice *lat, fprintf (f, " [from:"); for (s = val->sources; s; s = s->next) - fprintf (f, " %i(%i)", s->cs->caller->uid,s->cs->frequency); + fprintf (f, " %i(%i)", s->cs->caller->symbol.order, + s->cs->frequency); fprintf (f, "]"); } @@ -397,7 +398,8 @@ print_all_lattices (FILE * f, bool dump_sources, bool dump_benefits) struct ipa_node_params *info; info = IPA_NODE_REF (node); - fprintf (f, " Node: %s/%i:\n", cgraph_node_name (node), node->uid); + fprintf (f, " Node: %s/%i:\n", cgraph_node_name (node), + node->symbol.order); count = ipa_get_param_count (info); for (i = 0; i < count; i++) { @@ -447,7 +449,7 @@ determine_versionability (struct cgraph_node *node) if (reason && dump_file && !node->alias && !node->thunk.thunk_p) fprintf (dump_file, "Function %s/%i is not versionable, reason: %s.\n", - cgraph_node_name (node), node->uid, reason); + cgraph_node_name (node), node->symbol.order, reason); node->local.versionable = (reason == NULL); } @@ -727,7 +729,7 @@ initialize_node_lattices (struct cgraph_node *node) if (dump_file && (dump_flags & TDF_DETAILS) && !node->alias && !node->thunk.thunk_p) fprintf (dump_file, "Marking all lattices of %s/%i as %s\n", - cgraph_node_name (node), node->uid, + cgraph_node_name (node), node->symbol.order, disable ? "BOTTOM" : "VARIABLE"); } @@ -1820,7 +1822,7 @@ estimate_local_effects (struct cgraph_node *node) if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "\nEstimating effects for %s/%i, base_time: %i.\n", - cgraph_node_name (node), node->uid, base_time); + cgraph_node_name (node), node->symbol.order, base_time); always_const = gather_context_independent_values (info, &known_csts, &known_binfos, &known_aggs, @@ -2570,7 +2572,7 @@ update_profiling_info (struct cgraph_node *orig_node, fprintf (dump_file, " Problem: node %s/%i has too low count " HOST_WIDE_INT_PRINT_DEC " while the sum of incoming " "counts is " HOST_WIDE_INT_PRINT_DEC "\n", - cgraph_node_name (orig_node), orig_node->uid, + cgraph_node_name (orig_node), orig_node->symbol.order, (HOST_WIDE_INT) orig_node_count, (HOST_WIDE_INT) (orig_sum + new_sum)); @@ -2704,7 +2706,7 @@ create_specialized_node (struct cgraph_node *node, if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, " the new node is %s/%i.\n", - cgraph_node_name (new_node), new_node->uid); + cgraph_node_name (new_node), new_node->symbol.order); if (aggvals) ipa_dump_agg_replacement_values (dump_file, aggvals); } @@ -3254,9 +3256,9 @@ perhaps_add_new_callers (struct cgraph_node *node, struct ipcp_value *val) fprintf (dump_file, " - adding an extra caller %s/%i" " of %s/%i\n", xstrdup (cgraph_node_name (cs->caller)), - cs->caller->uid, + cs->caller->symbol.order, xstrdup (cgraph_node_name (val->spec_node)), - val->spec_node->uid); + val->spec_node->symbol.order); cgraph_redirect_edge_callee (cs, val->spec_node); redirected_sum += cs->count; @@ -3361,7 +3363,7 @@ decide_about_value (struct cgraph_node *node, int index, HOST_WIDE_INT offset, if (dump_file) fprintf (dump_file, " Creating a specialized node of %s/%i.\n", - cgraph_node_name (node), node->uid); + cgraph_node_name (node), node->symbol.order); callers = gather_edges_for_value (val, caller_count); kv = known_csts.copy (); @@ -3398,7 +3400,7 @@ decide_whether_version_node (struct cgraph_node *node) if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "\nEvaluating opportunities for %s/%i.\n", - cgraph_node_name (node), node->uid); + cgraph_node_name (node), node->symbol.order); gather_context_independent_values (info, &known_csts, &known_binfos, info->do_clone_for_all_contexts ? &known_aggs @@ -3442,7 +3444,7 @@ decide_whether_version_node (struct cgraph_node *node) if (dump_file) fprintf (dump_file, " - Creating a specialized node of %s/%i " "for all known contexts.\n", cgraph_node_name (node), - node->uid); + node->symbol.order); callers = collect_callers_of_node (node); move_binfos_to_values (known_csts, known_binfos); @@ -3533,7 +3535,7 @@ identify_dead_nodes (struct cgraph_node *node) for (v = node; v ; v = ((struct ipa_dfs_info *) v->symbol.aux)->next_cycle) if (IPA_NODE_REF (v)->node_dead) fprintf (dump_file, " Marking node as dead: %s/%i.\n", - cgraph_node_name (v), v->uid); + cgraph_node_name (v), v->symbol.order); } } |