Avoid extraneous remapping in copy_gimple_seq_and_replace_locals
authorMartin Jambor <mjambor@suse.cz>
Fri, 15 Jan 2016 12:43:49 +0000 (13:43 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 15 Jan 2016 12:43:49 +0000 (13:43 +0100)
commit8f634fb4f1becd81e712775512f26888c4e6900d
tree4e93e8a68ee3c2eba698a0a56e941ce8e240c2c7
parentaa189aee2e2c2602bf2eef67291c1f56273252b5
Avoid extraneous remapping in copy_gimple_seq_and_replace_locals

2016-01-15  Martin Jambor  <mjambor@suse.cz>

* tree-inline.c (remap_decl): Use existing dclarations if
remapping a type and prevent_decl_creation_for_types.
(replace_locals_stmt): Do an initial remapping of non-VLA typed
decls first.  Do real remapping with
prevent_decl_creation_for_types set.
* tree-inline.h (copy_body_data): New field
prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
padding.

From-SVN: r232419
gcc/ChangeLog
gcc/tree-inline.c
gcc/tree-inline.h