diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-05 13:49:43 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-05 13:49:43 +0000 |
commit | cbe92cbb287112fd0ff64f5569f7164c799f3e3d (patch) | |
tree | afe2154c65a8f2e29991715f4bb5cb09f4853283 /gcc/tree-ssa.c | |
parent | 1c128d269342c539be18e11cc226a2651061c82b (diff) | |
download | gcc-cbe92cbb287112fd0ff64f5569f7164c799f3e3d.tar.gz |
* predict.c (apply_return_prediction): Standardize PHI chain
walking.
* tree-ssa.c (ssa_redirect_edge): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95930 138bc75d-0d04-0410-961f-82ee72b054a4
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 9346d6cf706..99b9627c207 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -53,15 +53,13 @@ Boston, MA 02111-1307, USA. */ edge ssa_redirect_edge (edge e, basic_block dest) { - tree phi, next; + tree phi; tree list = NULL, *last = &list; tree src, dst, node; /* Remove the appropriate PHI arguments in E's destination block. */ - for (phi = phi_nodes (e->dest); phi; phi = next) + for (phi = phi_nodes (e->dest); phi; phi = PHI_CHAIN (phi)) { - next = PHI_CHAIN (phi); - if (PHI_ARG_DEF (phi, e->dest_idx) == NULL_TREE) continue; |