aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-01-06 12:27:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-01-06 12:27:14 +0000
commitf37a6f4f57b43f50c1b5920169e0d696fc2a7985 (patch)
treebbbbd052ce8b081cd8692e3a8756f3a53ebcd797 /gcc
parentfd09ac0cf712e7dfbd25bccff1db810193cc7b17 (diff)
downloadgcc-f37a6f4f57b43f50c1b5920169e0d696fc2a7985.zip
gcc-f37a6f4f57b43f50c1b5920169e0d696fc2a7985.tar.gz
gcc-f37a6f4f57b43f50c1b5920169e0d696fc2a7985.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/tree-dfa.c1
-rw-r--r--gcc/tree-ssa-forwprop.c4
-rw-r--r--gcc/tree-ssa-pre.c4
4 files changed, 12 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 99809f0..93bd4e1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index f29602d..36b4a5b 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -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
diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c
index 2d89494..55d9c75 100644
--- a/gcc/tree-ssa-forwprop.c
+++ b/gcc/tree-ssa-forwprop.c
@@ -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
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 2e2fd64..cb4e51f 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -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.