aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-11-25 22:31:09 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-11-25 22:31:09 +0000
commitd2e398dfc83188c4a94e191d51689ab56e0991a0 (patch)
tree66c8df427757e768c2a5be03b5940cc14259184e /gcc/tree-cfg.c
parent9f8e747867f0b4824c02c7745491b8ef2110b814 (diff)
downloadgcc-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-cfg.c')
-rw-r--r--gcc/tree-cfg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index bd2555f..2d02f71 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -3130,7 +3130,7 @@ reinstall_phi_args (edge new_edge, edge old_edge)
gcc_assert (result == PHI_RESULT (phi));
- add_phi_arg (&phi, arg, new_edge);
+ add_phi_arg (phi, arg, new_edge);
}
PENDING_STMT (old_edge) = NULL;
@@ -3862,7 +3862,7 @@ tree_make_forwarder_block (edge fallthru)
new_phi = create_phi_node (var, bb);
SSA_NAME_DEF_STMT (var) = new_phi;
SET_PHI_RESULT (phi, make_ssa_name (SSA_NAME_VAR (var), phi));
- add_phi_arg (&new_phi, PHI_RESULT (phi), fallthru);
+ add_phi_arg (new_phi, PHI_RESULT (phi), fallthru);
}
/* Ensure that the PHI node chain is in the same order. */
@@ -4040,7 +4040,7 @@ thread_jumps_from_bb (basic_block bb)
{
arg = phi_arg_from_edge (phi, last);
gcc_assert (arg >= 0);
- add_phi_arg (&phi, PHI_ARG_DEF (phi, arg), e);
+ add_phi_arg (phi, PHI_ARG_DEF (phi, arg), e);
}
}
@@ -4566,7 +4566,7 @@ add_phi_args_after_copy_bb (basic_block bb_copy)
gcc_assert (PHI_RESULT (phi) == PHI_RESULT (phi_copy));
def = PHI_ARG_DEF_FROM_EDGE (phi, e);
- add_phi_arg (&phi_copy, def, e_copy);
+ add_phi_arg (phi_copy, def, e_copy);
}
}
}
@@ -4888,8 +4888,8 @@ tree_duplicate_sese_region (edge entry, edge exit,
tree name = ssa_name (ver);
phi = create_phi_node (name, exit->dest);
- add_phi_arg (&phi, name, exit);
- add_phi_arg (&phi, name, exit_copy);
+ add_phi_arg (phi, name, exit);
+ add_phi_arg (phi, name, exit_copy);
SSA_NAME_DEF_STMT (name) = phi;
}