tree-dfa.c (mark_new_vars_to_rename): Create stmt annotation, if necessary.
authorRichard Guenther <rguenther@suse.de>
Fri, 6 Jan 2006 12:27:14 +0000 (12:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 6 Jan 2006 12:27:14 +0000 (12:27 +0000)
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

gcc/ChangeLog
gcc/tree-dfa.c
gcc/tree-ssa-forwprop.c
gcc/tree-ssa-pre.c

index 99809f0d4fa2670a3631c11c77d98ae3b0d76cce..93bd4e1b16f7609eab464141809ff435dbbf7b4e 100644 (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.
index f29602d27a31c75e2a7273caa10661a1737d5d86..36b4a5bf953e754afbf64ecba524e3b4a165ad05 100644 (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
index 2d89494ca73906108da3160cfa41f81dea574b18..55d9c75aaeab36b46bce5aa74e82d932fe125a0f 100644 (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
index 2e2fd64b626ccaa397e842a9e51ffc39ccb0d66c..cb4e51f8c952c26d9468345684acda77c19d5220 100644 (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.