diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-16 23:03:34 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-16 23:03:34 +0000 |
commit | 04f8eea36ac397c3903291fcbb7f41c12e83ea4d (patch) | |
tree | dde82bd9f48e0a3f866df03c17efa0827619c51e /gcc/tree-ssa-phiopt.c | |
parent | 4a35e7d0fa5924c9bd57c656066954222134dff5 (diff) | |
download | gcc-04f8eea36ac397c3903291fcbb7f41c12e83ea4d.tar.gz |
* tree.h (PHI_CHAIN): New.
* (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c,
tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c,
tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c,
tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN
when traversing a list of PHI_NODEs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83273 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r-- | gcc/tree-ssa-phiopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index fa342700d65..bc14dc48d80 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -121,7 +121,7 @@ tree_ssa_phiopt (void) /* We're searching for blocks with one PHI node which has two arguments. */ phi = phi_nodes (bb); - if (phi && TREE_CHAIN (phi) == NULL + if (phi && PHI_CHAIN (phi) == NULL && PHI_NUM_ARGS (phi) == 2) { arg0 = PHI_ARG_DEF (phi, 0); |