aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-05-27 11:55:36 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-05-27 11:55:36 +0000
commit6e3b9e2787800d6fde4828a532cc94d436193701 (patch)
tree9ce95a8274eddc018ca58ea84940d4f4844d6ef2 /gcc/tree-ssa-dom.c
parentfb617f00f1279cec132fda679dadb9b0abe54723 (diff)
downloadgcc-6e3b9e2787800d6fde4828a532cc94d436193701.zip
gcc-6e3b9e2787800d6fde4828a532cc94d436193701.tar.gz
gcc-6e3b9e2787800d6fde4828a532cc94d436193701.tar.bz2
tree-into-ssa.c (update_ssa): Ensure that the operand cache is up-to-date.
* tree-into-ssa.c (update_ssa): Ensure that the operand cache is up-to-date. * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call update_stmt_if_modified before calling update_ssa. From-SVN: r100250
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 278d27a..cb4abcf 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -423,15 +423,6 @@ tree_ssa_dominator_optimize (void)
/* Recursively walk the dominator tree optimizing statements. */
walk_dominator_tree (&walk_data, ENTRY_BLOCK_PTR);
- /* If we exposed any new variables, go ahead and put them into
- SSA form now, before we handle jump threading. This simplifies
- interactions between rewriting of _DECL nodes into SSA form
- and rewriting SSA_NAME nodes into SSA form after block
- duplication and CFG manipulation. */
- update_ssa (TODO_update_ssa);
-
- free_all_edge_infos ();
-
{
block_stmt_iterator bsi;
basic_block bb;
@@ -444,6 +435,15 @@ tree_ssa_dominator_optimize (void)
}
}
+ /* If we exposed any new variables, go ahead and put them into
+ SSA form now, before we handle jump threading. This simplifies
+ interactions between rewriting of _DECL nodes into SSA form
+ and rewriting SSA_NAME nodes into SSA form after block
+ duplication and CFG manipulation. */
+ update_ssa (TODO_update_ssa);
+
+ free_all_edge_infos ();
+
/* Thread jumps, creating duplicate blocks as needed. */
cfg_altered |= thread_through_all_blocks ();