diff options
author | Martin Jambor <mjambor@suse.cz> | 2016-01-15 13:43:49 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2016-01-15 13:43:49 +0100 |
commit | 8f634fb4f1becd81e712775512f26888c4e6900d (patch) | |
tree | 4e93e8a68ee3c2eba698a0a56e941ce8e240c2c7 /gcc/tree-inline.h | |
parent | aa189aee2e2c2602bf2eef67291c1f56273252b5 (diff) | |
download | gcc-8f634fb4f1becd81e712775512f26888c4e6900d.zip gcc-8f634fb4f1becd81e712775512f26888c4e6900d.tar.gz gcc-8f634fb4f1becd81e712775512f26888c4e6900d.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-inline.h')
-rw-r--r-- | gcc/tree-inline.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/tree-inline.h b/gcc/tree-inline.h index d3e5229..4cc1f19 100644 --- a/gcc/tree-inline.h +++ b/gcc/tree-inline.h @@ -140,14 +140,17 @@ struct copy_body_data the originals have been mapped to a value rather than to a variable. */ hash_map<tree, tree> *debug_map; - - /* Cilk keywords currently need to replace some variables that - ordinary nested functions do not. */ - bool remap_var_for_cilk; /* A map from the inlined functions dependence info cliques to equivalents in the function into which it is being inlined. */ hash_map<dependence_hash, unsigned short> *dependence_map; + + /* Cilk keywords currently need to replace some variables that + ordinary nested functions do not. */ + bool remap_var_for_cilk; + + /* Do not create new declarations when within type remapping. */ + bool prevent_decl_creation_for_types; }; /* Weights of constructions for estimate_num_insns. */ |