aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-11-29 17:53:48 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-11-29 17:53:48 +0000
commit62112e35c6368eeb4fe5192d9240958e4c477287 (patch)
treeda2fe01010d192699501790da6990b71dcc5f540 /gcc
parent67bbb1e12241eba7dca619c2984d6abb08214137 (diff)
downloadgcc-62112e35c6368eeb4fe5192d9240958e4c477287.zip
gcc-62112e35c6368eeb4fe5192d9240958e4c477287.tar.gz
gcc-62112e35c6368eeb4fe5192d9240958e4c477287.tar.bz2
tree-if-conv.c (replace_phi_with_cond_modify_expr): Use EDGE_PRED instead of PHI_ARG_EDGE.
* 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. From-SVN: r91473
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/tree-if-conv.c2
-rw-r--r--gcc/tree-ssa-live.c2
-rw-r--r--gcc/tree-ssa-loop-manip.c2
-rw-r--r--gcc/tree-ssa.c2
5 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4a65e98..5b56064 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 0eee6d9..36e9c75 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 554a039..15c8b48 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 01c75c8..fe9c43c 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 f9c5362..24b5697 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)
{