aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorTrevor Saunders <tsaunders@mozilla.com>2013-11-18 12:18:12 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2013-11-18 12:18:12 +0000
commitfec39fa6b010bb0a37c93412e8f147668c558f98 (patch)
treea5a2310e101e4acec88120d4acdb8a49b8cf9bb3 /gcc/ipa-inline.c
parent1f66e10e20b9b281a77ff85b2db40574524054ac (diff)
downloadgcc-fec39fa6b010bb0a37c93412e8f147668c558f98.zip
gcc-fec39fa6b010bb0a37c93412e8f147668c558f98.tar.gz
gcc-fec39fa6b010bb0a37c93412e8f147668c558f98.tar.bz2
remove nolonger needed {cgraph,varpool}_node_{,asm_}name () functions
From-SVN: r204946
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 85f8e5d..c9a373b 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -222,8 +222,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->order,
- xstrdup (cgraph_node_name (e->callee)), e->callee->order,
+ xstrdup (e->caller->name ()), e->caller->order,
+ xstrdup (e->callee->name ()), e->callee->order,
cgraph_inline_failed_string (e->inline_failed));
}
}
@@ -434,9 +434,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)),
+ xstrdup (e->caller->name ()),
e->caller->order,
- xstrdup (cgraph_node_name (callee)), callee->order,
+ xstrdup (callee->name ()), callee->order,
growth);
want_inline = false;
}
@@ -445,9 +445,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)),
+ xstrdup (e->caller->name ()),
e->caller->order,
- xstrdup (cgraph_node_name (callee)), callee->order,
+ xstrdup (callee->name ()), callee->order,
growth);
want_inline = false;
}
@@ -458,9 +458,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)),
+ xstrdup (e->caller->name ()),
e->caller->order,
- xstrdup (cgraph_node_name (callee)), callee->order,
+ xstrdup (callee->name ()), callee->order,
growth);
want_inline = false;
}
@@ -870,9 +870,9 @@ edge_badness (struct cgraph_edge *edge, bool dump)
if (dump)
{
fprintf (dump_file, " Badness calculation for %s/%i -> %s/%i\n",
- xstrdup (cgraph_node_name (edge->caller)),
+ xstrdup (edge->caller->name ()),
edge->caller->order,
- xstrdup (cgraph_node_name (callee)),
+ xstrdup (callee->name ()),
edge->callee->order);
fprintf (dump_file, " size growth %i, time %i ",
growth,
@@ -1037,9 +1037,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)),
+ xstrdup (edge->caller->name ()),
edge->caller->order,
- xstrdup (cgraph_node_name (edge->callee)),
+ xstrdup (edge->callee->name ()),
edge->callee->order,
(int)n->key,
badness);
@@ -1054,9 +1054,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)),
+ xstrdup (edge->caller->name ()),
edge->caller->order,
- xstrdup (cgraph_node_name (edge->callee)),
+ xstrdup (edge->callee->name ()),
edge->callee->order,
badness);
}
@@ -1288,7 +1288,7 @@ recursive_inlining (struct cgraph_edge *edge,
if (dump_file)
fprintf (dump_file,
" Performing recursive inlining on %s\n",
- cgraph_node_name (node));
+ node->name ());
/* Do the inlining and update list of recursive call during process. */
while (!fibheap_empty (heap))
@@ -1595,7 +1595,7 @@ inline_small_functions (void)
if (dump_file)
fprintf (dump_file, "Enqueueing calls in %s/%i.\n",
- cgraph_node_name (node), node->order);
+ node->name (), node->order);
for (edge = node->callees; edge; edge = next)
{
@@ -1678,13 +1678,13 @@ inline_small_functions (void)
{
fprintf (dump_file,
"\nConsidering %s/%i with %i size\n",
- cgraph_node_name (callee), callee->order,
+ callee->name (), callee->order,
inline_summary (callee)->size);
fprintf (dump_file,
" 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), edge->caller->order,
+ edge->caller->name (), edge->caller->order,
flag_wpa ? "unknown"
: gimple_filename ((const_gimple) edge->call_stmt),
flag_wpa ? -1
@@ -1797,7 +1797,7 @@ inline_small_functions (void)
fprintf (dump_file,
" Inlined into %s which now has time %i and size %i,"
"net change of %+i.\n",
- cgraph_node_name (edge->caller),
+ edge->caller->name (),
inline_summary (edge->caller)->time,
inline_summary (edge->caller)->size,
overall_size - old_size);
@@ -1848,8 +1848,8 @@ flatten_function (struct cgraph_node *node, bool early)
if (dump_file)
fprintf (dump_file,
"Not inlining %s into %s to avoid cycle.\n",
- xstrdup (cgraph_node_name (callee)),
- xstrdup (cgraph_node_name (e->caller)));
+ xstrdup (callee->name ()),
+ xstrdup (e->caller->name ()));
e->inline_failed = CIF_RECURSIVE_INLINING;
continue;
}
@@ -1889,8 +1889,8 @@ flatten_function (struct cgraph_node *node, bool early)
recursing through the original node if the node was cloned. */
if (dump_file)
fprintf (dump_file, " Inlining %s into %s.\n",
- xstrdup (cgraph_node_name (callee)),
- xstrdup (cgraph_node_name (e->caller)));
+ xstrdup (callee->name ()),
+ xstrdup (e->caller->name ()));
orig_callee = callee;
inline_call (e, true, NULL, NULL, false);
if (e->callee != orig_callee)
@@ -1935,11 +1935,11 @@ inline_to_all_callers (struct cgraph_node *node, void *data)
{
fprintf (dump_file,
"\nInlining %s size %i.\n",
- cgraph_node_name (node),
+ node->name (),
inline_summary (node)->size);
fprintf (dump_file,
" Called once from %s %i insns.\n",
- cgraph_node_name (node->callers->caller),
+ node->callers->caller->name (),
inline_summary (node->callers->caller)->size);
}
@@ -1947,7 +1947,7 @@ inline_to_all_callers (struct cgraph_node *node, void *data)
if (dump_file)
fprintf (dump_file,
" Inlined into %s which now has %i size\n",
- cgraph_node_name (caller),
+ caller->name (),
inline_summary (caller)->size);
if (!(*num_calls)--)
{
@@ -2007,7 +2007,7 @@ ipa_inline (void)
{
if (dump_file)
fprintf (dump_file,
- "Flattening %s\n", cgraph_node_name (node));
+ "Flattening %s\n", node->name ());
flatten_function (node, false);
}
}
@@ -2115,7 +2115,7 @@ inline_always_inline_functions (struct cgraph_node *node)
{
if (dump_file)
fprintf (dump_file, " Not inlining recursive call to %s.\n",
- cgraph_node_name (e->callee));
+ e->callee->name ());
e->inline_failed = CIF_RECURSIVE_INLINING;
continue;
}
@@ -2133,8 +2133,8 @@ inline_always_inline_functions (struct cgraph_node *node)
if (dump_file)
fprintf (dump_file, " Inlining %s into %s (always_inline).\n",
- xstrdup (cgraph_node_name (e->callee)),
- xstrdup (cgraph_node_name (e->caller)));
+ xstrdup (e->callee->name ()),
+ xstrdup (e->caller->name ()));
inline_call (e, true, NULL, NULL, false);
inlined = true;
}
@@ -2168,7 +2168,7 @@ early_inline_small_functions (struct cgraph_node *node)
if (dump_file)
fprintf (dump_file, "Considering inline candidate %s.\n",
- cgraph_node_name (callee));
+ callee->name ());
if (!can_early_inline_edge_p (e))
continue;
@@ -2185,8 +2185,8 @@ early_inline_small_functions (struct cgraph_node *node)
if (dump_file)
fprintf (dump_file, " Inlining %s into %s.\n",
- xstrdup (cgraph_node_name (callee)),
- xstrdup (cgraph_node_name (e->caller)));
+ xstrdup (callee->name ()),
+ xstrdup (e->caller->name ()));
inline_call (e, true, NULL, NULL, true);
inlined = true;
}
@@ -2247,7 +2247,7 @@ early_inliner (void)
all calls in it. */
if (dump_file)
fprintf (dump_file,
- "Flattening %s\n", cgraph_node_name (node));
+ "Flattening %s\n", node->name ());
flatten_function (node, true);
inlined = true;
}