From d7145b4bb6c8729a1e782373cb6256c06ed60465 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 31 Mar 2021 11:35:29 +0200 Subject: 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. --- gcc/cgraphunit.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 1c74cee..0b70e4d 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1892,10 +1892,6 @@ cgraph_node::expand (void) comdat groups. */ assemble_thunks_and_aliases (); release_body (); - /* Eliminate all call edges. This is important so the GIMPLE_CALL no longer - points to the dead function body. */ - remove_callees (); - remove_all_references (); } /* Node comparator that is responsible for the order that corresponds -- cgit v1.1