Re: [hsa merge 04/10] Avoid extraneous remapping in copy_gimple_seq_and_replace_locals

2016-01-13 Thread Jakub Jelinek
On Wed, Jan 13, 2016 at 06:39:29PM +0100, Martin Jambor wrote: > --- a/gcc/tree-inline.c > +++ b/gcc/tree-inline.c > @@ -340,8 +340,22 @@ remap_decl (tree decl, copy_body_data *id) >return decl; > } > > - /* If we didn't already have an equivalent for this declaration, > - creat

[hsa merge 04/10] Avoid extraneous remapping in copy_gimple_seq_and_replace_locals

2016-01-13 Thread Martin Jambor
Hi, this patch is new, it addresses a problem I outlined in https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00424.html and it is an implementation of Jakub's suggestion in https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00614.html I have refrained from bigger changes in struct copy_body_data in tree-