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
This commit is contained in:
Richard Guenther 2012-05-16 13:31:39 +00:00 committed by Richard Biener
parent c334023f37
commit 00d9266fad
3 changed files with 5 additions and 24 deletions

View File

@ -1,3 +1,8 @@
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):

View File

@ -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

View File

@ -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);