tree-dfa.c (mark_new_vars_to_rename): Create stmt annotation, if necessary.

2006-01-06  Richard Guenther  <rguenther@suse.de>

	* tree-dfa.c (mark_new_vars_to_rename): Create stmt
	annotation, if necessary.
	* tree-ssa-pre.c (create_expression_by_pieces): Remove
	redundant calls to update_stmt.
	* tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
	Likewise.

From-SVN: r109416
This commit is contained in:
Richard Guenther 2006-01-06 12:27:14 +00:00 committed by Richard Biener
parent fd09ac0cf7
commit f37a6f4f57
4 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,12 @@
2006-01-06 Richard Guenther <rguenther@suse.de>
* tree-dfa.c (mark_new_vars_to_rename): Create stmt
annotation, if necessary.
* tree-ssa-pre.c (create_expression_by_pieces): Remove
redundant calls to update_stmt.
* tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
Likewise.
2006-01-05 Richard Henderson <rth@redhat.com>
* c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.

View File

@ -796,6 +796,7 @@ mark_new_vars_to_rename (tree stmt)
if (TREE_CODE (stmt) == PHI_NODE)
return;
get_stmt_ann (stmt);
vars_in_vops_to_rename = BITMAP_ALLOC (NULL);
/* Before re-scanning the statement for operands, mark the existing

View File

@ -444,8 +444,6 @@ forward_propagate_into_cond (tree cond_expr)
static void
tidy_after_forward_propagate_addr (tree stmt)
{
mark_new_vars_to_rename (stmt);
/* We may have turned a trapping insn into a non-trapping insn. */
if (maybe_clean_or_replace_eh_stmt (stmt, stmt)
&& tree_purge_dead_eh_edges (bb_for_stmt (stmt)))
@ -454,7 +452,7 @@ tidy_after_forward_propagate_addr (tree stmt)
if (TREE_CODE (TREE_OPERAND (stmt, 1)) == ADDR_EXPR)
recompute_tree_invariant_for_addr_expr (TREE_OPERAND (stmt, 1));
update_stmt (stmt);
mark_new_vars_to_rename (stmt);
}
/* STMT defines LHS which is contains the address of the 0th element

View File

@ -2150,8 +2150,7 @@ create_expression_by_pieces (basic_block block, tree expr, tree stmts)
vn_add (forcedname, val);
bitmap_value_replace_in_set (NEW_SETS (block), forcedname);
bitmap_value_replace_in_set (AVAIL_OUT (block), forcedname);
update_stmt (stmt);
mark_new_vars_to_rename (tsi_stmt (tsi));
mark_new_vars_to_rename (stmt);
}
tsi = tsi_last (stmts);
tsi_link_after (&tsi, forced_stmts, TSI_CONTINUE_LINKING);
@ -2179,7 +2178,6 @@ create_expression_by_pieces (basic_block block, tree expr, tree stmts)
tsi = tsi_last (stmts);
tsi_link_after (&tsi, newexpr, TSI_CONTINUE_LINKING);
VEC_safe_push (tree, heap, inserted_exprs, newexpr);
update_stmt (newexpr);
mark_new_vars_to_rename (newexpr);
/* Add a value handle to the temporary.