summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2004-06-16 23:03:34 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2004-06-16 23:03:34 +0000
commit17192884645f6c9e6135af2e691418734bdb6aac (patch)
treedde82bd9f48e0a3f866df03c17efa0827619c51e /gcc/tree-ssa-loop.c
parentbf83cc10ca01f0da835a13d9bda9ca52cd251bea (diff)
downloadgcc-17192884645f6c9e6135af2e691418734bdb6aac.tar.gz
tree.h (PHI_CHAIN): New.
* tree.h (PHI_CHAIN): New. * (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c, tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN when traversing a list of PHI_NODEs. From-SVN: r83273
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r--gcc/tree-ssa-loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c
index bbcba9c98db..89692a27705 100644
--- a/gcc/tree-ssa-loop.c
+++ b/gcc/tree-ssa-loop.c
@@ -109,7 +109,7 @@ mark_defs_for_rewrite (basic_block bb)
v_must_def_optype v_must_defs;
unsigned i;
- for (stmt = phi_nodes (bb); stmt; stmt = TREE_CHAIN (stmt))
+ for (stmt = phi_nodes (bb); stmt; stmt = PHI_CHAIN (stmt))
{
var = SSA_NAME_VAR (PHI_RESULT (stmt));
bitmap_set_bit (vars_to_rename, var_ann (var)->uid);
@@ -223,7 +223,7 @@ duplicate_blocks (varray_type bbs_to_duplicate)
for (e1 = new_header->succ; e1->dest != e->dest; e1 = e1->succ_next)
continue;
- for (phi = phi_nodes (e->dest); phi; phi = TREE_CHAIN (phi))
+ for (phi = phi_nodes (e->dest); phi; phi = PHI_CHAIN (phi))
{
tree def = phi_element_for_edge (phi, e)->def;
add_phi_arg (&phi, def, e1);