diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-15 11:35:22 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-15 11:35:22 +0000 |
commit | 74fa23922a189845dad4cca1e8854de624b0ca12 (patch) | |
tree | 95f19784c581a1f85cb35235a5b5aea1f6c73e5b /gcc/tree-dfa.c | |
parent | b6297c58cda06dc31302af6bcf3878d96fdcce33 (diff) | |
download | gcc-74fa23922a189845dad4cca1e8854de624b0ca12.tar.gz |
2012-05-15 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 187525 using svnmerge
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@187527 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r-- | gcc/tree-dfa.c | 45 |
1 files changed, 5 insertions, 40 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 3494fc9e962..6944fc76e8d 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -198,10 +198,9 @@ make_rename_temp (tree type, const char *prefix) tree t = create_tmp_reg (type, prefix); if (gimple_referenced_vars (cfun)) - { - add_referenced_var (t); - mark_sym_for_renaming (t); - } + add_referenced_var (t); + if (gimple_in_ssa_p (cfun)) + mark_sym_for_renaming (t); return t; } @@ -462,9 +461,7 @@ find_vars_r (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) return NULL_TREE; } -/* Find referenced variables in STMT. In contrast with - find_new_referenced_vars, this function will not mark newly found - variables for renaming. */ +/* Find referenced variables in STMT. */ void find_referenced_vars_in (gimple stmt) @@ -505,7 +502,7 @@ referenced_var_lookup (struct function *fn, unsigned int uid) /* Check if TO is in the referenced_vars hash table and insert it if not. Return true if it required insertion. */ -bool +static bool referenced_var_check_and_insert (tree to) { tree h, *loc; @@ -667,38 +664,6 @@ mark_symbols_for_renaming (gimple stmt) } -/* Find all variables within the gimplified statement that were not - previously visible to the function and add them to the referenced - variables list. */ - -static tree -find_new_referenced_vars_1 (tree *tp, int *walk_subtrees, - void *data ATTRIBUTE_UNUSED) -{ - tree t = *tp; - - if (TREE_CODE (t) == VAR_DECL && !var_ann (t)) - { - add_referenced_var (t); - mark_sym_for_renaming (t); - } - - if (IS_TYPE_OR_DECL_P (t)) - *walk_subtrees = 0; - - return NULL; -} - - -/* Find any new referenced variables in STMT. */ - -void -find_new_referenced_vars (gimple stmt) -{ - walk_gimple_op (stmt, find_new_referenced_vars_1, NULL); -} - - /* If EXP is a handled component reference for a structure, return the base variable. The access range is delimited by bit positions *POFFSET and *POFFSET + *PMAX_SIZE. The access size is *PSIZE bits. If either |