Commit 3659e0cd by Daniel Berlin Committed by Daniel Berlin

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
parent 179daa15
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> 2007-05-28 Kazu Hirata <kazu@codesourcery.com>
* targhooks.c (default_narrow_bitfield): Remove. * targhooks.c (default_narrow_bitfield): Remove.
......
...@@ -702,6 +702,7 @@ eliminate_unnecessary_stmts (void) ...@@ -702,6 +702,7 @@ eliminate_unnecessary_stmts (void)
== SSA_NAME) == SSA_NAME)
&& !TEST_BIT (processed, SSA_NAME_VERSION (name))) && !TEST_BIT (processed, SSA_NAME_VERSION (name)))
{ {
tree oldlhs = GIMPLE_STMT_OPERAND (t, 0);
something_changed = true; something_changed = true;
if (dump_file && (dump_flags & TDF_DETAILS)) if (dump_file && (dump_flags & TDF_DETAILS))
{ {
...@@ -715,6 +716,7 @@ eliminate_unnecessary_stmts (void) ...@@ -715,6 +716,7 @@ eliminate_unnecessary_stmts (void)
maybe_clean_or_replace_eh_stmt (t, call); maybe_clean_or_replace_eh_stmt (t, call);
mark_symbols_for_renaming (call); mark_symbols_for_renaming (call);
pop_stmt_changes (bsi_stmt_ptr (i)); pop_stmt_changes (bsi_stmt_ptr (i));
release_ssa_name (oldlhs);
} }
notice_special_calls (call); notice_special_calls (call);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment