diff options
author | Richard Guenther <rguenther@suse.de> | 2012-08-08 14:51:26 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-08-08 14:51:26 +0000 |
commit | a471762f68f0315df2d3c772596c45f38f45fb7c (patch) | |
tree | 5689352c68b543e180bc74d7d78ab9b7cbf2ccb6 /gcc/gimple.c | |
parent | aa5d8db01989776315c05c52343b609d01dcc43a (diff) | |
download | gcc-a471762f68f0315df2d3c772596c45f38f45fb7c.zip gcc-a471762f68f0315df2d3c772596c45f38f45fb7c.tar.gz gcc-a471762f68f0315df2d3c772596c45f38f45fb7c.tar.bz2 |
tree-ssa-operands.h (virtual_operand_p): Declare.
2012-08-08 Richard Guenther <rguenther@suse.de>
* tree-ssa-operands.h (virtual_operand_p): Declare.
* tree-ssa-operands.c (virtual_operand_p): New predicate.
* gimple.c (is_gimple_reg): Use virtual_operand_p.
* tree-into-ssa.c (prepare_block_for_update): Likewise.
* tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
From-SVN: r190231
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 7686f81..d78c60f 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -2782,19 +2782,12 @@ is_gimple_id (tree t) bool is_gimple_reg (tree t) { - if (TREE_CODE (t) == SSA_NAME) - { - t = SSA_NAME_VAR (t); - if (TREE_CODE (t) == VAR_DECL - && VAR_DECL_IS_VIRTUAL_OPERAND (t)) - return false; - return true; - } - - if (TREE_CODE (t) == VAR_DECL - && VAR_DECL_IS_VIRTUAL_OPERAND (t)) + if (virtual_operand_p (t)) return false; + if (TREE_CODE (t) == SSA_NAME) + return true; + if (!is_gimple_variable (t)) return false; |