Clone creation housekeeping

H.J. Lu hjl.tools@gmail.com
Sat May 29 17:35:00 GMT 2010


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.



More information about the Gcc-patches mailing list