diff options
author | Richard Guenther <rguenther@suse.de> | 2012-05-16 13:31:39 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-05-16 13:31:39 +0000 |
commit | 00d9266fad559adc3b88c5cc311f5b933d9437cb (patch) | |
tree | 50368c64d9d4d5ea8219abbc26ecc06014540063 /gcc | |
parent | c334023f3713f64fafb81c8108c2086f258bd754 (diff) | |
download | gcc-00d9266fad559adc3b88c5cc311f5b933d9437cb.zip gcc-00d9266fad559adc3b88c5cc311f5b933d9437cb.tar.gz gcc-00d9266fad559adc3b88c5cc311f5b933d9437cb.tar.bz2 |
tree-flow.h (get_virtual_var): Remove.
2012-05-16 Richard Guenther <rguenther@suse.de>
* tree-flow.h (get_virtual_var): Remove.
* tree-dfa.c (get_virtual_var): Likewise.
From-SVN: r187592
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-dfa.c | 23 | ||||
-rw-r--r-- | gcc/tree-flow.h | 1 |
3 files changed, 5 insertions, 24 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 198284f..775441d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2012-05-16 Richard Guenther <rguenther@suse.de> + * tree-flow.h (get_virtual_var): Remove. + * tree-dfa.c (get_virtual_var): Likewise. + +2012-05-16 Richard Guenther <rguenther@suse.de> + * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Remove set-only bitmap of new names. (slpeel_tree_peel_loop_to_edge): Likewise. Do not set diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 6944fc7..d588b66 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -624,29 +624,6 @@ remove_referenced_var (tree var) } -/* Return the virtual variable associated to the non-scalar variable VAR. */ - -tree -get_virtual_var (tree var) -{ - STRIP_NOPS (var); - - if (TREE_CODE (var) == SSA_NAME) - var = SSA_NAME_VAR (var); - - while (TREE_CODE (var) == REALPART_EXPR || TREE_CODE (var) == IMAGPART_EXPR - || handled_component_p (var)) - var = TREE_OPERAND (var, 0); - - /* Treating GIMPLE registers as virtual variables makes no sense. - Also complain if we couldn't extract a _DECL out of the original - expression. */ - gcc_assert (SSA_VAR_P (var)); - gcc_assert (!is_gimple_reg (var)); - - return var; -} - /* Mark all the naked symbols in STMT for SSA renaming. */ void diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index ddc169a..09bc1d0 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -491,7 +491,6 @@ extern void debug_referenced_vars (void); extern void dump_referenced_vars (FILE *); extern void dump_variable (FILE *, tree); extern void debug_variable (tree); -extern tree get_virtual_var (tree); extern bool add_referenced_var (tree); extern void remove_referenced_var (tree); extern void mark_symbols_for_renaming (gimple); |