diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-01-24 20:47:43 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-01-24 20:47:43 +0000 |
commit | 3a2f1f06651ace284325fa449acf5babffd91a3e (patch) | |
tree | 15c9cc34f3a169e8b5913e2a149242fb5c4879f2 /gcc/tree-ssa.c | |
parent | 2a4d06261820a8fa78728d40ea51ba4658b6d914 (diff) | |
download | gcc-3a2f1f06651ace284325fa449acf5babffd91a3e.zip gcc-3a2f1f06651ace284325fa449acf5babffd91a3e.tar.gz gcc-3a2f1f06651ace284325fa449acf5babffd91a3e.tar.bz2 |
tree-flow-inline.h (phi_arg_from_edge): Remove.
* tree-flow-inline.h (phi_arg_from_edge): Remove.
* tree-flow.h: Remove the corresponding prototype.
* tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
From-SVN: r94183
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r-- | gcc/tree-ssa.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index aa6f523..d7fa593 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -56,18 +56,16 @@ ssa_redirect_edge (edge e, basic_block dest) tree phi, next; tree list = NULL, *last = &list; tree src, dst, node; - int i; /* Remove the appropriate PHI arguments in E's destination block. */ for (phi = phi_nodes (e->dest); phi; phi = next) { next = PHI_CHAIN (phi); - i = phi_arg_from_edge (phi, e); - if (PHI_ARG_DEF (phi, i) == NULL_TREE) + if (PHI_ARG_DEF (phi, e->dest_idx) == NULL_TREE) continue; - src = PHI_ARG_DEF (phi, i); + src = PHI_ARG_DEF (phi, e->dest_idx); dst = PHI_RESULT (phi); node = build_tree_list (dst, src); *last = node; |