aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivopts.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2006-12-11 17:50:53 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2006-12-11 12:50:53 -0500
commit9b3b55a10516cf15d37f39ac473ad86b6ae3c3ce (patch)
treec10c3e1e438be55ec7fabae41f6449845ab479fc /gcc/tree-ssa-loop-ivopts.c
parent546447ae68630c589ab35c109430caa4656a2453 (diff)
downloadgcc-9b3b55a10516cf15d37f39ac473ad86b6ae3c3ce.zip
gcc-9b3b55a10516cf15d37f39ac473ad86b6ae3c3ce.tar.gz
gcc-9b3b55a10516cf15d37f39ac473ad86b6ae3c3ce.tar.bz2
* 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/tree-ssa-loop-ivopts.c')
-rw-r--r--gcc/tree-ssa-loop-ivopts.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index 1aea162..ca95823 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -5351,12 +5351,7 @@ remove_statement (tree stmt, bool including_defined_name)
{
if (TREE_CODE (stmt) == PHI_NODE)
{
- if (!including_defined_name)
- {
- /* Prevent the ssa name defined by the statement from being removed. */
- SET_PHI_RESULT (stmt, NULL);
- }
- remove_phi_node (stmt, NULL_TREE);
+ remove_phi_node (stmt, NULL_TREE, including_defined_name);
}
else
{