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/tree-into-ssa.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/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 74ef7f5..eb1ef6c 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -2548,14 +2548,12 @@ prepare_block_for_update (basic_block bb, bool insert_phi_p) gimple phi = gsi_stmt (si); tree lhs_sym, lhs = gimple_phi_result (phi); - lhs_sym = DECL_P (lhs) ? lhs : SSA_NAME_VAR (lhs); - if (TREE_CODE (lhs) == SSA_NAME - && (TREE_CODE (lhs_sym) != VAR_DECL - || !VAR_DECL_IS_VIRTUAL_OPERAND (lhs_sym) - || !cfun->gimple_df->rename_vops)) + && (! virtual_operand_p (lhs) + || ! cfun->gimple_df->rename_vops)) continue; + lhs_sym = DECL_P (lhs) ? lhs : SSA_NAME_VAR (lhs); mark_for_renaming (lhs_sym); mark_def_interesting (lhs_sym, phi, bb, insert_phi_p); |