aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.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-cfg.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-cfg.c')
-rw-r--r--gcc/tree-cfg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 59a32ea..f738d40 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -1333,13 +1333,12 @@ tree_merge_blocks (basic_block a, basic_block b)
appear as arguments of the phi nodes. */
copy = build2_gimple (GIMPLE_MODIFY_STMT, def, use);
bsi_insert_after (&bsi, copy, BSI_NEW_STMT);
- SET_PHI_RESULT (phi, NULL_TREE);
SSA_NAME_DEF_STMT (def) = copy;
}
else
replace_uses_by (def, use);
- remove_phi_node (phi, NULL);
+ remove_phi_node (phi, NULL, false);
}
/* Ensure that B follows A. */
@@ -1970,7 +1969,7 @@ remove_phi_nodes_and_edges_for_unreachable_block (basic_block bb)
while (phi)
{
tree next = PHI_CHAIN (phi);
- remove_phi_node (phi, NULL_TREE);
+ remove_phi_node (phi, NULL_TREE, true);
phi = next;
}