tree-cfg.c, [...]: Replace TREE_CHAIN with PHI_CHAIN where appropriate.
authorKazu Hirata <kazu@gcc.gnu.org>
Sun, 14 Nov 2004 04:08:11 +0000 (04:08 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 14 Nov 2004 04:08:11 +0000 (04:08 +0000)
* tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
with PHI_CHAIN where appropriate.

From-SVN: r90611

gcc/ChangeLog
gcc/tree-cfg.c
gcc/tree-if-conv.c
gcc/tree-ssa-loop-ivopts.c
gcc/tree-ssa-loop-manip.c
gcc/tree-vectorizer.c

index 7e8f482e27515e78a713c22bb0f998fedfada475..de89cb014687f69c1c5389da797c4eb58b0fc55a 100644 (file)
@@ -1,12 +1,18 @@
+2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
+       tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
+       with PHI_CHAIN where appropriate.
+
 2004-11-13  Dale Johannesen  <dalej@apple.com>
 
-       * tree-flow.h (bsi_commit_one_edge_insert):  Remove name from prototype.
-       (tree_block_label):  Ditto.
-       (flush_pending_stmts):  Ditto.
-       (insert_edge_copies):  Ditto.
-       (expr_invariant_in_loop_p):  Ditto.
-       (TDF_USE_OPS):  Parenthesize definition.
-       (TDF_USE_VOPS):  Ditto.
+       * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
+       (tree_block_label): Ditto.
+       (flush_pending_stmts): Ditto.
+       (insert_edge_copies): Ditto.
+       (expr_invariant_in_loop_p): Ditto.
+       (TDF_USE_OPS): Parenthesize definition.
+       (TDF_USE_VOPS): Ditto.
 
 2004-11-13  David Edelsohn  <edelsohn@gnu.org>
 
index 9136efee7bab4a521eb9d843c14ebbef2c24017e..b27f872b42742aaec8f383fce8da3be393a2f830 100644 (file)
@@ -4515,9 +4515,9 @@ add_phi_args_after_copy_bb (basic_block bb_copy)
 
       for (phi = phi_nodes (e->dest), phi_copy = phi_nodes (e_copy->dest);
           phi;
-          phi = phi_next, phi_copy = TREE_CHAIN (phi_copy))
+          phi = phi_next, phi_copy = PHI_CHAIN (phi_copy))
        {
-         phi_next = TREE_CHAIN (phi);
+         phi_next = PHI_CHAIN (phi);
 
          gcc_assert (PHI_RESULT (phi) == PHI_RESULT (phi_copy));
          def = PHI_ARG_DEF_FROM_EDGE (phi, e);
index ce247fcbde8113ec69696464288acfe90efdc52f..ce07166c6ae9e24da4e86770503f4a6e0c38d648 100644 (file)
@@ -824,7 +824,7 @@ process_phi_nodes (struct loop *loop)
 
       while (phi)
        {
-         tree next = TREE_CHAIN (phi);
+         tree next = PHI_CHAIN (phi);
          replace_phi_with_cond_modify_expr (phi, cond, true_bb, &bsi);
          release_phi_node (phi);
          phi = next;
index 417c4635943512a506a62a65a98c7066289cdb96..867f72d06686327a71bb4162997730f9103e261b 100644 (file)
@@ -4659,7 +4659,7 @@ compute_phi_arg_on_exit (edge exit, tree stmts, tree op)
 
   for (phi = phi_nodes (exit->dest); phi; phi = next)
     {
-      next = TREE_CHAIN (phi);
+      next = PHI_CHAIN (phi);
 
       if (PHI_ARG_DEF_FROM_EDGE (phi, exit) == op)
        {
index 22324949e9bfa5e248076117475929fc9e7cc4e0..43499560e5495cfaa05fb7bb5e0c7e72d9b3e00c 100644 (file)
@@ -665,7 +665,7 @@ lv_adjust_loop_header_phi (basic_block first, basic_block second,
 
   for (phi2 = phi_nodes (second), phi1 = phi_nodes (first); 
        phi2 && phi1; 
-       phi2 = TREE_CHAIN (phi2),  phi1 = TREE_CHAIN (phi1))
+       phi2 = PHI_CHAIN (phi2),  phi1 = PHI_CHAIN (phi1))
     {
       int i;
       for (i = 0; i < PHI_NUM_ARGS (phi2); i++)
index 0c29a34251e08a57d52aa8e23ef86babf16e11b2..e1095f579be1caab5bf2f0c6255cb8db15ebad87 100644 (file)
@@ -482,7 +482,7 @@ update_phis_for_duplicate_loop (struct loop *loop,
   for (phi_new = phi_nodes (new_loop->header),
        phi_old = phi_nodes (loop->header);
        phi_new && phi_old;
-       phi_new = TREE_CHAIN (phi_new), phi_old = TREE_CHAIN (phi_old))
+       phi_new = PHI_CHAIN (phi_new), phi_old = PHI_CHAIN (phi_old))
     {
       def = PHI_ARG_DEF_FROM_EDGE (phi_old, old_latch);
 
@@ -577,7 +577,7 @@ update_phi_nodes_for_guard (edge guard_true_edge, struct loop * loop)
        /* Update all phi nodes at the loop exit successor.  */
        for (phi1 = phi_nodes (EDGE_SUCC (bb, 0)->dest); 
             phi1; 
-            phi1 = TREE_CHAIN (phi1))
+            phi1 = PHI_CHAIN (phi1))
          {
            tree old_arg = PHI_ARG_DEF_FROM_EDGE (phi1, EDGE_SUCC (bb, 0));
            if (old_arg == phi_arg)