This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Clone creation housekeeping
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 29 May 2010 10:01:07 -0700
- Subject: Re: Clone creation housekeeping
- References: <20100528152246.GB13801@kam.mff.cuni.cz>
On Fri, May 28, 2010 at 8:22 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
> Hi,
> this patch cleans up clone creation. cgraph_create_virtual_clone and
> cgraph_function_versioning now take suffix argument so we can make more
> descriptive names than just ".clone". ?In particular for partial inlining I
> want the suffix to be ".part".
>
> Patch also commonize code with omp-low and fixes cgraph_function_versioning.
> It is supposed to be in sync with cgraph_create_virtual_clone but since it is
> unused currently, it got a bit rotten too.
>
> Bootstrapped/regtested x86_64-linux, will commit it later today if there are no
> complains.
>
> Honza
>
> ? ? ? ?* cgraph.c (clone_function_name): Take SUFFIX argument; export.
> ? ? ? ?(cgraph_create_virtual_clone): Take SUFFIX argument; udpate
> ? ? ? ?use of clone_function_name.
> ? ? ? ?* cgraph.h (cgraph_create_virtual_clone,
> ? ? ? ?cgraph_function_versioning): update prototypes.
> ? ? ? ?(clone_function_name): Declare.
> ? ? ? ?* ipa-cp.c (ipcp_insert_stage): Update call of
> ? ? ? ?cgraph_create_virtual_clone.
> ? ? ? ?* omp-low.c (create_omp_child_function_name): Use
> ? ? ? ?cgraph_create_virtual_clone.
> ? ? ? ?* cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
> ? ? ? ?(cgraph_function_versioning): Take SUFFIX argument; produce new name
> ? ? ? ?and make decl local.
>
> ? ? ? ?* gcc.dg/tree-ssa/ipa-cp-1.c: Update testcase.
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44324
--
H.J.