From eeead3a6f1c090dceb9c2b8f6a92855369702244 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 18 Aug 2016 07:21:11 +0000 Subject: ssa-iterators.h (ssa_vuse_operand): New inline. 2016-08-18 Richard Biener * ssa-iterators.h (ssa_vuse_operand): New inline. * tree-if-conv.c (ifc_temp_var): Update virtual operand. (predicate_all_scalar_phis): Use remove_phi_node to remove phi nodes predicated. Delay removing virtual PHIs. (predicate_mem_writes): Update virtual operands. (combine_blocks): Likewise. Propagate out remaining virtual PHIs. (tree_if_conversion): Do not rewrite virtual SSA form. * tree-phinodes.c (release_phi_node): Make static. * tree-phinodes.h (release_phi_node): Remove. From-SVN: r239560 --- gcc/ssa-iterators.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/ssa-iterators.h') diff --git a/gcc/ssa-iterators.h b/gcc/ssa-iterators.h index b6d8f3c..7e656e1 100644 --- a/gcc/ssa-iterators.h +++ b/gcc/ssa-iterators.h @@ -699,6 +699,15 @@ single_ssa_use_operand (gimple *stmt, int flags) return NULL_USE_OPERAND_P; } +/* Return the single virtual use operand in STMT if present. Otherwise + return NULL. */ +static inline use_operand_p +ssa_vuse_operand (gimple *stmt) +{ + if (! gimple_vuse (stmt)) + return NULL_USE_OPERAND_P; + return USE_OP_PTR (gimple_use_ops (stmt)); +} /* If there is a single operand in STMT matching FLAGS, return it. Otherwise -- cgit v1.1