This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-profiling-branch PATCH] Function cloning + IPCP extension
- From: Razya Ladelsky <RAZYA at il dot ibm dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: Ayal Zaks <ZAKS at il dot ibm dot com>, gcc-patches at gcc dot gnu dot org, hubicka at ucw dot cz, Mircea Namolaru <NAMOLARU at il dot ibm dot com>, stevenb at suse dot de
- Date: Mon, 30 Aug 2004 16:01:35 +0300
- Subject: Re: [tree-profiling-branch PATCH] Function cloning + IPCP extension
Hello,
> It looks like we do have two different mechanisms to keep function body
> alive until all clones are processed. For inline clones we use the
> linked list via next_clone and take advantage of fact that all of them
> do have same DECL node and same hash slot, while for new clones we use
> reference counting.
>
Since a versioned node has a different FUNCTION_DECL than the original
node,
using the same mechanism for keeping the clones seems to be complicated.
> +
> + /* Remove unreachable nodes. */
> + void
> + cgraph_unreachable_nodes_elimination (void)
>
> how this is different from cgraph_remove_unreachable_nodes we have
> already?
It seems that calling cgraph_remove_unreachable_nodes
should be done only after the inlining decisions had been made
(as documented in top of the function).
Thanks,
Revital and Razya