diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-15 10:35:59 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-15 10:35:59 +0000 |
commit | 15c999e300ce4b964596356967085d8e5f21cb4f (patch) | |
tree | 58c9805dc7bf2a381e5910b508a1fe957bbb0de5 /gcc/ipa-inline.c | |
parent | 7af74943825a005cc2966a4d4e8ef3f2dab26f11 (diff) | |
download | gcc-15c999e300ce4b964596356967085d8e5f21cb4f.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198925 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 964d1f9d9de..35fce6d4a1a 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -218,8 +218,8 @@ report_inline_failed_reason (struct cgraph_edge *e) if (dump_file) { fprintf (dump_file, " not inlinable: %s/%i -> %s/%i, %s\n", - xstrdup (cgraph_node_name (e->caller)), e->caller->uid, - xstrdup (cgraph_node_name (e->callee)), e->callee->uid, + xstrdup (cgraph_node_name (e->caller)), e->caller->symbol.order, + xstrdup (cgraph_node_name (e->callee)), e->callee->symbol.order, cgraph_inline_failed_string (e->inline_failed)); } } @@ -424,8 +424,9 @@ want_early_inline_function_p (struct cgraph_edge *e) if (dump_file) fprintf (dump_file, " will not early inline: %s/%i->%s/%i, " "call is cold and code would grow by %i\n", - xstrdup (cgraph_node_name (e->caller)), e->caller->uid, - xstrdup (cgraph_node_name (callee)), callee->uid, + xstrdup (cgraph_node_name (e->caller)), + e->caller->symbol.order, + xstrdup (cgraph_node_name (callee)), callee->symbol.order, growth); want_inline = false; } @@ -434,8 +435,9 @@ want_early_inline_function_p (struct cgraph_edge *e) if (dump_file) fprintf (dump_file, " will not early inline: %s/%i->%s/%i, " "growth %i exceeds --param early-inlining-insns\n", - xstrdup (cgraph_node_name (e->caller)), e->caller->uid, - xstrdup (cgraph_node_name (callee)), callee->uid, + xstrdup (cgraph_node_name (e->caller)), + e->caller->symbol.order, + xstrdup (cgraph_node_name (callee)), callee->symbol.order, growth); want_inline = false; } @@ -446,8 +448,9 @@ want_early_inline_function_p (struct cgraph_edge *e) fprintf (dump_file, " will not early inline: %s/%i->%s/%i, " "growth %i exceeds --param early-inlining-insns " "divided by number of calls\n", - xstrdup (cgraph_node_name (e->caller)), e->caller->uid, - xstrdup (cgraph_node_name (callee)), callee->uid, + xstrdup (cgraph_node_name (e->caller)), + e->caller->symbol.order, + xstrdup (cgraph_node_name (callee)), callee->symbol.order, growth); want_inline = false; } @@ -851,9 +854,9 @@ edge_badness (struct cgraph_edge *edge, bool dump) { fprintf (dump_file, " Badness calculation for %s/%i -> %s/%i\n", xstrdup (cgraph_node_name (edge->caller)), - edge->caller->uid, + edge->caller->symbol.order, xstrdup (cgraph_node_name (callee)), - edge->callee->uid); + edge->callee->symbol.order); fprintf (dump_file, " size growth %i, time %i ", growth, edge_time); @@ -1002,9 +1005,9 @@ update_edge_key (fibheap_t heap, struct cgraph_edge *edge) fprintf (dump_file, " decreasing badness %s/%i -> %s/%i, %i to %i\n", xstrdup (cgraph_node_name (edge->caller)), - edge->caller->uid, + edge->caller->symbol.order, xstrdup (cgraph_node_name (edge->callee)), - edge->callee->uid, + edge->callee->symbol.order, (int)n->key, badness); } @@ -1019,9 +1022,9 @@ update_edge_key (fibheap_t heap, struct cgraph_edge *edge) fprintf (dump_file, " enqueuing call %s/%i -> %s/%i, badness %i\n", xstrdup (cgraph_node_name (edge->caller)), - edge->caller->uid, + edge->caller->symbol.order, xstrdup (cgraph_node_name (edge->callee)), - edge->callee->uid, + edge->callee->symbol.order, badness); } edge->aux = fibheap_insert (heap, badness, edge); @@ -1465,7 +1468,7 @@ inline_small_functions (void) { if (dump_file) fprintf (dump_file, "Enqueueing calls of %s/%i.\n", - cgraph_node_name (node), node->uid); + cgraph_node_name (node), node->symbol.order); for (edge = node->callers; edge; edge = edge->next_caller) if (edge->inline_failed @@ -1524,14 +1527,14 @@ inline_small_functions (void) if (dump_file) { fprintf (dump_file, - "\nConsidering %s with %i size\n", - cgraph_node_name (callee), + "\nConsidering %s/%i with %i size\n", + cgraph_node_name (callee), callee->symbol.order, inline_summary (callee)->size); fprintf (dump_file, - " to be inlined into %s in %s:%i\n" + " to be inlined into %s/%i in %s:%i\n" " Estimated growth after inlined into all is %+i insns.\n" " Estimated badness is %i, frequency %.2f.\n", - cgraph_node_name (edge->caller), + cgraph_node_name (edge->caller), edge->caller->symbol.order, flag_wpa ? "unknown" : gimple_filename ((const_gimple) edge->call_stmt), flag_wpa ? -1 |