diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-05-27 11:55:36 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-05-27 11:55:36 +0000 |
commit | 6e3b9e2787800d6fde4828a532cc94d436193701 (patch) | |
tree | 9ce95a8274eddc018ca58ea84940d4f4844d6ef2 /gcc/tree-into-ssa.c | |
parent | fb617f00f1279cec132fda679dadb9b0abe54723 (diff) | |
download | gcc-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-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 03561ba..e7ff242 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -2679,6 +2679,10 @@ update_ssa (unsigned update_flags) for (si = bsi_start (bb); !bsi_end_p (si); bsi_next (&si)) { tree stmt = bsi_stmt (si); + /* We are going to use the operand cache API, such as + SET_USE, SET_DEF, and FOR_EACH_IMM_USE_FAST. The operand + cache for each statement should be up-to-date. */ + gcc_assert (!stmt_modified_p (stmt)); REWRITE_THIS_STMT (stmt) = 0; REGISTER_DEFS_IN_THIS_STMT (stmt) = 0; } |