aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-11-25 00:34:35 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-11-25 00:34:35 +0000
commit92faa2d1fef152dfca405d3a0268d65298d8c22d (patch)
tree150e48b018ec24afb01f91e2b11adb2302505405
parent5f0a713c2a55e0f5bcf758b6bc0ed4dfd97d769a (diff)
downloadgcc-92faa2d1fef152dfca405d3a0268d65298d8c22d.zip
gcc-92faa2d1fef152dfca405d3a0268d65298d8c22d.tar.gz
gcc-92faa2d1fef152dfca405d3a0268d65298d8c22d.tar.bz2
tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge with e->dest_idx.
* tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge with e->dest_idx. From-SVN: r91264
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/tree-phinodes.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ddbcfca..ad7c33f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -3,6 +3,9 @@
* tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
instead of calling phi_arg_from_edge.
+ * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
+ with e->dest_idx.
+
2004-11-24 Ben Elliston <bje@au.ibm.com>
* config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c
index eec2fa3..f566c80 100644
--- a/gcc/tree-phinodes.c
+++ b/gcc/tree-phinodes.c
@@ -395,11 +395,7 @@ remove_phi_args (edge e)
tree phi;
for (phi = phi_nodes (e->dest); phi; phi = PHI_CHAIN (phi))
- {
- int index = phi_arg_from_edge (phi, e);
- if (index >= 0)
- remove_phi_arg_num (phi, index);
- }
+ remove_phi_arg_num (phi, e->dest_idx);
}
/* Remove PHI node PHI from basic block BB. If PREV is non-NULL, it is