diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-27 11:55:36 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-27 11:55:36 +0000 |
commit | 0d7fd176e03408b680cb90e155152e1388eb447c (patch) | |
tree | 9ce95a8274eddc018ca58ea84940d4f4844d6ef2 /gcc/tree-into-ssa.c | |
parent | 0b7f4ea902f9b929e2ab29d9deb3dcc11ef1df64 (diff) | |
download | ppe42-gcc-0d7fd176e03408b680cb90e155152e1388eb447c.tar.gz ppe42-gcc-0d7fd176e03408b680cb90e155152e1388eb447c.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100250 138bc75d-0d04-0410-961f-82ee72b054a4
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 03561bacf3c..e7ff242ce27 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; } |