diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-23 23:15:54 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-23 23:15:54 +0000 |
commit | c23dad79cc8aca9ce5f7d916a84f73905c326820 (patch) | |
tree | 916f5481a2d49b54e7ca5e6359ffeb9231fdbe30 /gcc/tree-phinodes.c | |
parent | 401ed9a810e9f4a96a2be6caf742cd6776498a8b (diff) | |
download | gcc-c23dad79cc8aca9ce5f7d916a84f73905c326820.tar.gz |
* tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
Use phi_nodes_ptr.
(create_phi_node): Use set_phi_nodes.
* omp-low.c (expand_omp_parallel): Use bb_stmt_list.
* tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
(combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
* tree-flow-inline.h (phi_nodes, set_phi_nodes,
(bsi_start, bsi_last): Use bb_stmt_list.
(phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
* cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
Traverse the statements using tsi iterator.
* basic-block.h (struct basic_block_def): Fields stmt_list
and phi_nodes moved to ...
(struct tree_bb_info): ... new structure.
* tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
(tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
(remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
(tree_verify_flow_info): Verify that il.tree is not set for
entry and exit block.
(tree_split_block): Use set_bb_stmt_list.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-phinodes.c')
-rw-r--r-- | gcc/tree-phinodes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c index a758db9afb0..e77f4884d72 100644 --- a/gcc/tree-phinodes.c +++ b/gcc/tree-phinodes.c @@ -313,7 +313,7 @@ reserve_phi_args_for_new_edge (basic_block bb) int len = EDGE_COUNT (bb->preds); int cap = ideal_phi_node_len (len + 4); - for (loc = &(bb->phi_nodes); + for (loc = phi_nodes_ptr (bb); *loc; loc = &PHI_CHAIN (*loc)) { @@ -354,7 +354,7 @@ create_phi_node (tree var, basic_block bb) /* Add the new PHI node to the list of PHI nodes for block BB. */ PHI_CHAIN (phi) = phi_nodes (bb); - bb->phi_nodes = phi; + set_phi_nodes (bb, phi); /* Associate BB to the PHI node. */ set_bb_for_stmt (phi, bb); @@ -458,7 +458,7 @@ remove_phi_node (tree phi, tree prev, bool release_lhs_p) } else { - for (loc = &(bb_for_stmt (phi)->phi_nodes); + for (loc = phi_nodes_ptr (bb_for_stmt (phi)); *loc != phi; loc = &PHI_CHAIN (*loc)) ; |