diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-11-25 22:31:09 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-11-25 22:31:09 +0000 |
commit | d2e398dfc83188c4a94e191d51689ab56e0991a0 (patch) | |
tree | 66c8df427757e768c2a5be03b5940cc14259184e /gcc/tree-phinodes.c | |
parent | 9f8e747867f0b4824c02c7745491b8ef2110b814 (diff) | |
download | gcc-d2e398dfc83188c4a94e191d51689ab56e0991a0.zip gcc-d2e398dfc83188c4a94e191d51689ab56e0991a0.tar.gz gcc-d2e398dfc83188c4a94e191d51689ab56e0991a0.tar.bz2 |
tree-phinodes.c (add_phi_arg): Take "tree" instead of "tree *" as the first argument.
* tree-phinodes.c (add_phi_arg): Take "tree" instead of
"tree *" as the first argument.
* tree-flow.h: Update the prototype of add_phi_arg.
* lambda-code.c, tree-cfg.c, tree-into-ssa.c,
tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
tree-vectorizer.c: Update all call sites of add_phi_arg.
From-SVN: r91307
Diffstat (limited to 'gcc/tree-phinodes.c')
-rw-r--r-- | gcc/tree-phinodes.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c index f566c80..dc37066 100644 --- a/gcc/tree-phinodes.c +++ b/gcc/tree-phinodes.c @@ -334,30 +334,30 @@ create_phi_node (tree var, basic_block bb) PHI points to the reallocated phi node when we return. */ void -add_phi_arg (tree *phi, tree def, edge e) +add_phi_arg (tree phi, tree def, edge e) { basic_block bb = e->dest; - gcc_assert (bb == bb_for_stmt (*phi)); + gcc_assert (bb == bb_for_stmt (phi)); /* We resize PHI nodes upon edge creation. We should always have enough room at this point. */ - gcc_assert (PHI_NUM_ARGS (*phi) <= PHI_ARG_CAPACITY (*phi)); + gcc_assert (PHI_NUM_ARGS (phi) <= PHI_ARG_CAPACITY (phi)); /* We resize PHI nodes upon edge creation. We should always have enough room at this point. */ - gcc_assert (e->dest_idx < (unsigned int) PHI_NUM_ARGS (*phi)); + gcc_assert (e->dest_idx < (unsigned int) PHI_NUM_ARGS (phi)); /* Copy propagation needs to know what object occur in abnormal PHI nodes. This is a convenient place to record such information. */ if (e->flags & EDGE_ABNORMAL) { SSA_NAME_OCCURS_IN_ABNORMAL_PHI (def) = 1; - SSA_NAME_OCCURS_IN_ABNORMAL_PHI (PHI_RESULT (*phi)) = 1; + SSA_NAME_OCCURS_IN_ABNORMAL_PHI (PHI_RESULT (phi)) = 1; } - SET_PHI_ARG_DEF (*phi, e->dest_idx, def); - PHI_ARG_NONZERO (*phi, e->dest_idx) = false; + SET_PHI_ARG_DEF (phi, e->dest_idx, def); + PHI_ARG_NONZERO (phi, e->dest_idx) = false; } /* Remove the Ith argument from PHI's argument list. This routine assumes |