aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphclones.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2021-03-31 11:35:29 +0200
committerJan Hubicka <jh@suse.cz>2021-03-31 11:35:29 +0200
commitd7145b4bb6c8729a1e782373cb6256c06ed60465 (patch)
treeac5434e0f577133bb748f64406e070cb172afdbe /gcc/cgraphclones.c
parentc3c616747a615589d38aff92981eacbf932eb5c6 (diff)
downloadgcc-d7145b4bb6c8729a1e782373cb6256c06ed60465.zip
gcc-d7145b4bb6c8729a1e782373cb6256c06ed60465.tar.gz
gcc-d7145b4bb6c8729a1e782373cb6256c06ed60465.tar.bz2
Small refactoring of cgraph_node::release_body
PR lto/99447 * cgraph.c (cgraph_node::release_body): Remove all callers and references. * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here. * cgraphunit.c (cgraph_node::expand): And here.
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r--gcc/cgraphclones.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index 95103a4..9f86463 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -1143,11 +1143,7 @@ cgraph_node::materialize_clone ()
/* Function is no longer clone. */
remove_from_clone_tree ();
if (!this_clone_of->analyzed && !this_clone_of->clones)
- {
- this_clone_of->release_body ();
- this_clone_of->remove_callees ();
- this_clone_of->remove_all_references ();
- }
+ this_clone_of->release_body ();
}
#include "gt-cgraphclones.h"