From 00d9266fad559adc3b88c5cc311f5b933d9437cb Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 16 May 2012 13:31:39 +0000 Subject: tree-flow.h (get_virtual_var): Remove. 2012-05-16 Richard Guenther * tree-flow.h (get_virtual_var): Remove. * tree-dfa.c (get_virtual_var): Likewise. From-SVN: r187592 --- gcc/ChangeLog | 5 +++++ gcc/tree-dfa.c | 23 ----------------------- 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 + * tree-flow.h (get_virtual_var): Remove. + * tree-dfa.c (get_virtual_var): Likewise. + +2012-05-16 Richard Guenther + * 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); -- cgit v1.1