diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-16 23:03:34 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-16 23:03:34 +0000 |
commit | 04f8eea36ac397c3903291fcbb7f41c12e83ea4d (patch) | |
tree | dde82bd9f48e0a3f866df03c17efa0827619c51e /gcc/tree-outof-ssa.c | |
parent | 4a35e7d0fa5924c9bd57c656066954222134dff5 (diff) | |
download | gcc-04f8eea36ac397c3903291fcbb7f41c12e83ea4d.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83273 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-outof-ssa.c')
-rw-r--r-- | gcc/tree-outof-ssa.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index 3d0ec5267c1..ec52f6939fb 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -343,7 +343,7 @@ eliminate_build (elim_graph g, basic_block B, int i) clear_elim_graph (g); - for (phi = phi_nodes (B); phi; phi = TREE_CHAIN (phi)) + for (phi = phi_nodes (B); phi; phi = PHI_CHAIN (phi)) { T0 = var_to_partition_to_var (g->map, PHI_RESULT (phi)); @@ -588,7 +588,7 @@ coalesce_abnormal_edges (var_map map, conflict_graph graph, root_var_p rv) FOR_EACH_BB (bb) for (e = bb->succ; e; e = e->succ_next) if (e->dest != EXIT_BLOCK_PTR && e->flags & EDGE_ABNORMAL) - for (phi = phi_nodes (e->dest); phi; phi = TREE_CHAIN (phi)) + for (phi = phi_nodes (e->dest); phi; phi = PHI_CHAIN (phi)) { /* Visit each PHI on the destination side of this abnormal edge, and attempt to coalesce the argument with the result. */ @@ -698,7 +698,7 @@ coalesce_ssa_name (var_map map, int flags) /* Add all potential copies via PHI arguments to the list. */ FOR_EACH_BB (bb) { - for (phi = phi_nodes (bb); phi; phi = TREE_CHAIN (phi)) + for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi)) { tree res = PHI_RESULT (phi); int p = var_to_partition (map, res); @@ -970,7 +970,7 @@ eliminate_virtual_phis (void) { for (phi = phi_nodes (bb); phi; phi = next) { - next = TREE_CHAIN (phi); + next = PHI_CHAIN (phi); if (!is_gimple_reg (SSA_NAME_VAR (PHI_RESULT (phi)))) { #ifdef ENABLE_CHECKING @@ -1031,7 +1031,7 @@ coalesce_vars (var_map map, tree_live_info_p liveinfo) { tree phi, arg; int p; - for (phi = phi_nodes (bb); phi; phi = TREE_CHAIN (phi)) + for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi)) { p = var_to_partition (map, PHI_RESULT (phi)); @@ -1794,7 +1794,7 @@ rewrite_trees (var_map map, tree *values) { tree phi; - for (phi = phi_nodes (bb); phi; phi = TREE_CHAIN (phi)) + for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi)) { tree T0 = var_to_partition_to_var (map, PHI_RESULT (phi)); @@ -1987,7 +1987,7 @@ remove_ssa_form (FILE *dump, var_map map, int flags) { for (phi = phi_nodes (bb); phi; phi = next) { - next = TREE_CHAIN (phi); + next = PHI_CHAIN (phi); if ((flags & SSANORM_REMOVE_ALL_PHIS) || var_to_partition (map, PHI_RESULT (phi)) != NO_PARTITION) remove_phi_node (phi, NULL_TREE, bb); @@ -2029,7 +2029,7 @@ rewrite_vars_out_of_ssa (bitmap vars) to manually take variables out of SSA form here. */ FOR_EACH_BB (bb) { - for (phi = phi_nodes (bb); phi; phi = TREE_CHAIN (phi)) + for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi)) { tree result = SSA_NAME_VAR (PHI_RESULT (phi)); |