tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results whose definitions are deleted due to basic block...
* tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results whose definitions are deleted due to basic block merging. From-SVN: r120423
This commit is contained in:
parent
11de78ffd1
commit
611021e16c
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-01-03 Robert Kennedy <jimbob@google.com>
|
||||
|
||||
* tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
|
||||
whose definitions are deleted due to basic block merging.
|
||||
|
||||
2007-01-03 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
PR target/16634
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Control flow functions for trees.
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
|
@ -1329,11 +1329,13 @@ tree_merge_blocks (basic_block a, basic_block b)
|
|||
copy = build2_gimple (GIMPLE_MODIFY_STMT, def, use);
|
||||
bsi_insert_after (&bsi, copy, BSI_NEW_STMT);
|
||||
SSA_NAME_DEF_STMT (def) = copy;
|
||||
remove_phi_node (phi, NULL, false);
|
||||
}
|
||||
else
|
||||
replace_uses_by (def, use);
|
||||
|
||||
remove_phi_node (phi, NULL, false);
|
||||
{
|
||||
replace_uses_by (def, use);
|
||||
remove_phi_node (phi, NULL, true);
|
||||
}
|
||||
}
|
||||
|
||||
/* Ensure that B follows A. */
|
||||
|
|
Loading…
Add table
Reference in a new issue