diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-25 00:34:35 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-25 00:34:35 +0000 |
commit | 3b789e62207059dc177b59f571e3abaa154031d0 (patch) | |
tree | 150e48b018ec24afb01f91e2b11adb2302505405 /gcc/tree-phinodes.c | |
parent | 1825148359592edd60a3202254c062090400db67 (diff) | |
download | gcc-3b789e62207059dc177b59f571e3abaa154031d0.tar.gz |
* tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
with e->dest_idx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91264 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-phinodes.c')
-rw-r--r-- | gcc/tree-phinodes.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c index eec2fa3ed4f..f566c808957 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 |