diff options
author | Diego Novillo <dnovillo@redhat.com> | 2006-12-11 17:50:53 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2006-12-11 12:50:53 -0500 |
commit | 9b3b55a10516cf15d37f39ac473ad86b6ae3c3ce (patch) | |
tree | c10c3e1e438be55ec7fabae41f6449845ab479fc /gcc/lambda-code.c | |
parent | 546447ae68630c589ab35c109430caa4656a2453 (diff) | |
download | gcc-9b3b55a10516cf15d37f39ac473ad86b6ae3c3ce.tar.gz |
* tree-scalar-evolution.c (scev_const_prop):
* tree-phinodes.c (remove_phi_node): Add argument
RELEASE_LHS_P. If given, release the SSA name on the LHS of
the PHI node.
Update all users.
* tree-ssa-dce.c: Remove forward declarations for static
functions. Re-arrange functions bodies as needed.
(find_obviously_necessary_stmts): Never mark PHI nodes as
obviously necessary.
From-SVN: r119740
Diffstat (limited to 'gcc/lambda-code.c')
-rw-r--r-- | gcc/lambda-code.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/lambda-code.c b/gcc/lambda-code.c index 0eb3286503b..8972e50b362 100644 --- a/gcc/lambda-code.c +++ b/gcc/lambda-code.c @@ -2474,13 +2474,9 @@ perfect_nestify (struct loop *loop, } e = redirect_edge_and_branch (single_succ_edge (preheaderbb), headerbb); - /* Remove the exit phis from the old basic block. Make sure to set - PHI_RESULT to null so it doesn't get released. */ + /* Remove the exit phis from the old basic block. */ while (phi_nodes (olddest) != NULL) - { - SET_PHI_RESULT (phi_nodes (olddest), NULL); - remove_phi_node (phi_nodes (olddest), NULL); - } + remove_phi_node (phi_nodes (olddest), NULL, false); /* and add them back to the new basic block. */ while (VEC_length (tree, phis) != 0) |