diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-11 17:50:53 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-11 17:50:53 +0000 |
commit | 17889f9dfc42f96a098ba28020fbe427b1686000 (patch) | |
tree | c10c3e1e438be55ec7fabae41f6449845ab479fc /gcc/tree-cfg.c | |
parent | c69b8abd763922046e43393b2d7f02fd8ed269fe (diff) | |
download | gcc-17889f9dfc42f96a098ba28020fbe427b1686000.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119740 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 59a32ea6fff..f738d409d53 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; } |