tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA name when we remove it from a call.

2007-05-28  Daniel Berlin  <dberlin@dberlin.org>

	* tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
	name when we remove it from a call.

From-SVN: r125147
This commit is contained in:
Daniel Berlin 2007-05-28 21:56:51 +00:00 committed by Daniel Berlin
parent 179daa1590
commit 3659e0cd91
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-05-28 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
name when we remove it from a call.
2007-05-28 Kazu Hirata <kazu@codesourcery.com>
* targhooks.c (default_narrow_bitfield): Remove.

View File

@ -702,6 +702,7 @@ eliminate_unnecessary_stmts (void)
== SSA_NAME)
&& !TEST_BIT (processed, SSA_NAME_VERSION (name)))
{
tree oldlhs = GIMPLE_STMT_OPERAND (t, 0);
something_changed = true;
if (dump_file && (dump_flags & TDF_DETAILS))
{
@ -715,6 +716,7 @@ eliminate_unnecessary_stmts (void)
maybe_clean_or_replace_eh_stmt (t, call);
mark_symbols_for_renaming (call);
pop_stmt_changes (bsi_stmt_ptr (i));
release_ssa_name (oldlhs);
}
notice_special_calls (call);
}