diff options
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/tree-if-conv.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-live.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-manip.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa.c | 2 |
5 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a65e98b915..5b5606469a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2004-11-29 Kazu Hirata <kazu@cs.umass.edu> + + * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use + EDGE_PRED instead of PHI_ARG_EDGE. + * tree-ssa-live.c: Likewise. + * tree-ssa-loop-manip.c: Likewise. + * tree-ssa.c: Likewise. + 2004-11-29 Alan Modra <amodra@bigpond.net.au> * varasm.c (default_elf_select_section_1): Only pass DECL_P decl diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 0eee6d9acaf..36e9c758b53 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -757,7 +757,7 @@ replace_phi_with_cond_modify_expr (tree phi, tree cond, basic_block true_bb, arg_1 = NULL_TREE; /* Use condition that is not TRUTH_NOT_EXPR in conditional modify expr. */ - if (PHI_ARG_EDGE(phi, 1)->src == true_bb) + if (EDGE_PRED (bb, 1)->src == true_bb) { arg_0 = PHI_ARG_DEF (phi, 1); arg_1 = PHI_ARG_DEF (phi, 0); diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 554a0397a32..15c8b482082 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -589,7 +589,7 @@ calculate_live_on_entry (var_map map) if (!phi_ssa_name_p (var)) continue; stmt = SSA_NAME_DEF_STMT (var); - e = PHI_ARG_EDGE (phi, i); + e = EDGE_PRED (bb, i); /* Any uses in PHIs which either don't have def's or are not defined in the block from which the def comes, will be live diff --git a/gcc/tree-ssa-loop-manip.c b/gcc/tree-ssa-loop-manip.c index 01c75c87cfa..fe9c43c5860 100644 --- a/gcc/tree-ssa-loop-manip.c +++ b/gcc/tree-ssa-loop-manip.c @@ -274,7 +274,7 @@ find_uses_to_rename (bitmap *use_blocks) { for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi)) for (i = 0; i < (unsigned) PHI_NUM_ARGS (phi); i++) - find_uses_to_rename_use (PHI_ARG_EDGE (phi, i)->src, + find_uses_to_rename_use (EDGE_PRED (bb, i)->src, PHI_ARG_DEF (phi, i), use_blocks); for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi)) diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index f9c536211f8..24b5697f220 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -289,7 +289,7 @@ verify_phi_args (tree phi, basic_block bb, basic_block *definition_block) { tree op = PHI_ARG_DEF (phi, i); - e = PHI_ARG_EDGE (phi, i); + e = EDGE_PRED (bb, i); if (op == NULL_TREE) { |