diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2006-12-05 17:26:05 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2006-12-05 17:26:05 +0000 |
commit | 07beea0df36b29ef9acb27111eac0b0e92e181a5 (patch) | |
tree | 32d3ee1ddfcad180d619d756a84eeb0df779a6a2 /gcc/tree-ssa-operands.c | |
parent | 3b8aab767b942e122caf583493d7cd858c091cde (diff) | |
download | gcc-07beea0df36b29ef9acb27111eac0b0e92e181a5.zip gcc-07beea0df36b29ef9acb27111eac0b0e92e181a5.tar.gz gcc-07beea0df36b29ef9acb27111eac0b0e92e181a5.tar.bz2 |
Merge gimple-tuples-branch into mainline.
From-SVN: r119546
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 5c4e100..0587684 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -98,7 +98,7 @@ Boston, MA 02110-1301, USA. */ /* Operand is a "non-specific" kill for call-clobbers and such. This is used to distinguish "reset the world" events from explicit - MODIFY_EXPRs. */ + GIMPLE_MODIFY_STMTs. */ #define opf_non_specific (1 << 3) /* Array for building all the def operands. */ @@ -533,7 +533,7 @@ finalize_ssa_defs (tree stmt) unsigned int num = VEC_length (tree, build_defs); /* There should only be a single real definition per assignment. */ - gcc_assert ((stmt && TREE_CODE (stmt) != MODIFY_EXPR) || num <= 1); + gcc_assert ((stmt && TREE_CODE (stmt) != GIMPLE_MODIFY_STMT) || num <= 1); /* If there is an old list, often the new list is identical, or close, so find the elements at the beginning that are the same as the vector. */ @@ -1230,7 +1230,7 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags, check that this only happens on non-specific stores. Note that if this is a specific store, i.e. associated with a - modify_expr, then we can't suppress the V_MAY_DEF, lest we run + gimple_modify_stmt, then we can't suppress the V_MAY_DEF, lest we run into validation problems. This can happen when programs cast away const, leaving us with a @@ -1814,10 +1814,10 @@ get_asm_expr_operands (tree stmt) /* Scan operands for the assignment expression EXPR in statement STMT. */ static void -get_modify_expr_operands (tree stmt, tree expr) +get_modify_stmt_operands (tree stmt, tree expr) { /* First get operands from the RHS. */ - get_expr_operands (stmt, &TREE_OPERAND (expr, 1), opf_none); + get_expr_operands (stmt, &GIMPLE_STMT_OPERAND (expr, 1), opf_none); /* For the LHS, use a regular definition (OPF_IS_DEF) for GIMPLE registers. If the LHS is a store to memory, we will either need @@ -1832,7 +1832,8 @@ get_modify_expr_operands (tree stmt, tree expr) The determination of whether to use a preserving or a killing definition is done while scanning the LHS of the assignment. By default, assume that we will emit a V_MUST_DEF. */ - get_expr_operands (stmt, &TREE_OPERAND (expr, 0), opf_is_def|opf_kill_def); + get_expr_operands (stmt, &GIMPLE_STMT_OPERAND (expr, 0), + opf_is_def|opf_kill_def); } @@ -2005,8 +2006,8 @@ get_expr_operands (tree stmt, tree *expr_p, int flags) get_expr_operands (stmt, &TREE_OPERAND (expr, 2), opf_none); return; - case MODIFY_EXPR: - get_modify_expr_operands (stmt, expr); + case GIMPLE_MODIFY_STMT: + get_modify_stmt_operands (stmt, expr); return; case CONSTRUCTOR: @@ -2106,8 +2107,8 @@ parse_ssa_operands (tree stmt) code = TREE_CODE (stmt); switch (code) { - case MODIFY_EXPR: - get_modify_expr_operands (stmt, stmt); + case GIMPLE_MODIFY_STMT: + get_modify_stmt_operands (stmt, stmt); break; case COND_EXPR: |