This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Clone creation housekeeping


> 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

Oops, I commited patch with local change replacing "constprop" in ipa-cp.c by "clone".  Will
fix that shortly.

Honza
> 
> -- 
> H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]