diff options
author | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-05 17:26:05 +0000 |
---|---|---|
committer | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-05 17:26:05 +0000 |
commit | 35cc02b5c80ac6738c1a3362a822e3d7e4d0c587 (patch) | |
tree | 32d3ee1ddfcad180d619d756a84eeb0df779a6a2 /gcc/tree-ssa-dse.c | |
parent | fc297ba47e780c3659434d04f3c299b705154d5f (diff) | |
download | gcc-35cc02b5c80ac6738c1a3362a822e3d7e4d0c587.tar.gz |
Merge gimple-tuples-branch into mainline.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119546 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-dse.c')
-rw-r--r-- | gcc/tree-ssa-dse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index f7f333f0b2c..8cc4762ea04 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -205,7 +205,7 @@ memory_address_same (tree store1, tree store2) walk_data.store1_bb = bb_for_stmt (store1); walk_data.store2_bb = bb_for_stmt (store2); - return (walk_tree (&TREE_OPERAND (store1, 0), memory_ssa_name_same, + return (walk_tree (&GIMPLE_STMT_OPERAND (store1, 0), memory_ssa_name_same, &walk_data, NULL) == NULL); } @@ -237,15 +237,15 @@ dse_optimize_stmt (struct dom_walk_data *walk_data, if (ZERO_SSA_OPERANDS (stmt, (SSA_OP_VMAYDEF|SSA_OP_VMUSTDEF))) return; - /* We know we have virtual definitions. If this is a MODIFY_EXPR that's - not also a function call, then record it into our table. */ + /* We know we have virtual definitions. If this is a GIMPLE_MODIFY_STMT + that's not also a function call, then record it into our table. */ if (get_call_expr_in (stmt)) return; if (ann->has_volatile_ops) return; - if (TREE_CODE (stmt) == MODIFY_EXPR) + if (TREE_CODE (stmt) == GIMPLE_MODIFY_STMT) { use_operand_p first_use_p = NULL_USE_OPERAND_P; use_operand_p use_p = NULL; @@ -328,8 +328,8 @@ dse_optimize_stmt (struct dom_walk_data *walk_data, SSA-form variables in the address will have the same values. */ if (use_p != NULL_USE_OPERAND_P && bitmap_bit_p (dse_gd->stores, get_stmt_uid (use_stmt)) - && operand_equal_p (TREE_OPERAND (stmt, 0), - TREE_OPERAND (use_stmt, 0), 0) + && operand_equal_p (GIMPLE_STMT_OPERAND (stmt, 0), + GIMPLE_STMT_OPERAND (use_stmt, 0), 0) && memory_address_same (stmt, use_stmt)) { /* Make sure we propagate the ABNORMAL bit setting. */ |