diff options
author | Richard Guenther <rguenther@suse.de> | 2012-08-07 14:16:11 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-08-07 14:16:11 +0000 |
commit | 01c59d23df7eef24a9e5a695baef59bd233ce115 (patch) | |
tree | 39a6a8bb8b9c76f26ebb0675ce99e03139c76b3f /gcc/tree-ssa-live.c | |
parent | 5f33a4fc3ebcee4a661ed760d037ecfdbb00cfc5 (diff) | |
download | gcc-01c59d23df7eef24a9e5a695baef59bd233ce115.tar.gz |
tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF bit of the old name when we clear the slot.
2012-08-07 Richard Guenther <rguenther@suse.de>
* tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
bit of the old name when we clear the slot.
* tree-ssa-live.c (remove_unused_locals): Release any default
def associated with an unused var.
* tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
From-SVN: r190201
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 903faa91649..3edda1e378e 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -798,9 +798,16 @@ remove_unused_locals (void) { if (!is_used_p (var)) { + tree def; if (cfun->nonlocal_goto_save_area && TREE_OPERAND (cfun->nonlocal_goto_save_area, 0) == var) cfun->nonlocal_goto_save_area = NULL; + /* Release any default def associated with var. */ + if ((def = ssa_default_def (cfun, var)) != NULL_TREE) + { + set_ssa_default_def (cfun, var, NULL_TREE); + release_ssa_name (def); + } continue; } } |