summaryrefslogtreecommitdiffstats
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-28 11:00:07 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-28 11:00:07 +0000
commit77b5eabc32b82d9e2412e2156aa862a83a90dd73 (patch)
treec08f8afe0e5fdd9e320ec693410d8f7c2419be3d /gcc/cgraph.c
parentcc76f102cee16abb2a551d50a3b20447302e3204 (diff)
downloadppe42-gcc-77b5eabc32b82d9e2412e2156aa862a83a90dd73.tar.gz
ppe42-gcc-77b5eabc32b82d9e2412e2156aa862a83a90dd73.zip
* cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
cgraph_clone_node): Remove master clone handling. (cgraph_is_master_clone, cgraph_master_clone): Remove. * cgraph.h (master_clone): Remove. (cgraph_is_master_clone, cgraph_master_clone): Remove. * ipa-type-escape.c (type_escape_execute): Remove use of master clone. (tree-ssa-structalias.c (ipa_pta_execute): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145175 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 38de8e490d7..fa9ac3d427c 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -464,8 +464,6 @@ cgraph_node (tree decl)
if (*slot)
{
node = *slot;
- if (!node->master_clone)
- node->master_clone = node;
return node;
}
@@ -477,7 +475,6 @@ cgraph_node (tree decl)
node->origin = cgraph_node (DECL_CONTEXT (decl));
node->next_nested = node->origin->nested;
node->origin->nested = node;
- node->master_clone = node;
}
if (assembler_name_hash)
{
@@ -985,11 +982,6 @@ cgraph_remove_node (struct cgraph_node *node)
if (node->next_clone)
{
struct cgraph_node *new_node = node->next_clone;
- struct cgraph_node *n;
-
- /* Make the next clone be the master clone */
- for (n = new_node; n; n = n->next_clone)
- n->master_clone = new_node;
*slot = new_node;
node->next_clone->prev_clone = NULL;
@@ -1139,8 +1131,6 @@ dump_cgraph_node (FILE *f, struct cgraph_node *node)
if (cgraph_function_flags_ready)
fprintf (f, " availability:%s",
cgraph_availability_names [cgraph_function_body_availability (node)]);
- if (node->master_clone && node->master_clone->uid != node->uid)
- fprintf (f, "(%i)", node->master_clone->uid);
if (node->count)
fprintf (f, " executed "HOST_WIDEST_INT_PRINT_DEC"x",
(HOST_WIDEST_INT)node->count);
@@ -1349,7 +1339,6 @@ cgraph_clone_node (struct cgraph_node *n, gcov_type count, int freq,
new_node->local = n->local;
new_node->global = n->global;
new_node->rtl = n->rtl;
- new_node->master_clone = n->master_clone;
new_node->count = count;
if (n->count)
{
@@ -1381,28 +1370,6 @@ cgraph_clone_node (struct cgraph_node *n, gcov_type count, int freq,
return new_node;
}
-/* Return true if N is an master_clone, (see cgraph_master_clone). */
-
-bool
-cgraph_is_master_clone (struct cgraph_node *n)
-{
- return (n == cgraph_master_clone (n));
-}
-
-struct cgraph_node *
-cgraph_master_clone (struct cgraph_node *n)
-{
- enum availability avail = cgraph_function_body_availability (n);
-
- if (avail == AVAIL_NOT_AVAILABLE || avail == AVAIL_OVERWRITABLE)
- return NULL;
-
- if (!n->master_clone)
- n->master_clone = cgraph_node (n->decl);
-
- return n->master_clone;
-}
-
/* NODE is no longer nested function; update cgraph accordingly. */
void
cgraph_unnest_node (struct cgraph_node *node)
OpenPOWER on IntegriCloud