aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-live.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-08-07 12:11:43 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-08-07 12:11:43 +0000
commit5f33a4fc3ebcee4a661ed760d037ecfdbb00cfc5 (patch)
tree02e3ec579b10a719a3d7f4d2ad5c2cdc6cc883c1 /gcc/tree-ssa-live.c
parentdcc748dd77c692eb3ef01043a8fed55c796f6f0e (diff)
downloadgcc-5f33a4fc3ebcee4a661ed760d037ecfdbb00cfc5.zip
gcc-5f33a4fc3ebcee4a661ed760d037ecfdbb00cfc5.tar.gz
gcc-5f33a4fc3ebcee4a661ed760d037ecfdbb00cfc5.tar.bz2
tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables we rewrite into SSA form.
2012-08-07 Richard Guenther <rguenther@suse.de> * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables we rewrite into SSA form. (rewrite_enter_block): Adjust. * gimple-iterator.c (gsi_replace): Also allow replacement with a stmt without a lhs. * tree-ssa-live.c (remove_unused_locals): Remove code handling clobbers of SSA names. * tree-nested.c (convert_local_reference_stmt): Remove clobbers for variables we access through the local chain. * tree-cfg.c (verify_gimple_assign_single): Verify clobbers clobber full decls only. From-SVN: r190200
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r--gcc/tree-ssa-live.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c
index 86926960..903faa9 100644
--- a/gcc/tree-ssa-live.c
+++ b/gcc/tree-ssa-live.c
@@ -773,9 +773,6 @@ remove_unused_locals (void)
if (gimple_clobber_p (stmt))
{
tree lhs = gimple_assign_lhs (stmt);
- lhs = get_base_address (lhs);
- if (TREE_CODE (lhs) == SSA_NAME)
- lhs = SSA_NAME_VAR (lhs);
if (TREE_CODE (lhs) == VAR_DECL && !is_used_p (lhs))
{
unlink_stmt_vdef (stmt);