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-phiopt.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-phiopt.c')
-rw-r--r-- | gcc/tree-ssa-phiopt.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index edad768d864..2cc7ad79425 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -439,7 +439,7 @@ conditional_replacement (basic_block cond_bb, basic_block middle_bb, TREE_OPERAND (old_result, 0), TREE_OPERAND (old_result, 1)); - new1 = build2 (MODIFY_EXPR, TREE_TYPE (old_result), new_var, new1); + new1 = build2_gimple (GIMPLE_MODIFY_STMT, new_var, new1); SSA_NAME_DEF_STMT (new_var) = new1; bsi_insert_after (&bsi, new1, BSI_NEW_STMT); @@ -470,7 +470,7 @@ conditional_replacement (basic_block cond_bb, basic_block middle_bb, || (e1 == true_edge && integer_onep (arg1)) || (e1 == false_edge && integer_zerop (arg1))) { - new = build2 (MODIFY_EXPR, TREE_TYPE (new_var1), new_var1, cond); + new = build2_gimple (GIMPLE_MODIFY_STMT, new_var1, cond); } else { @@ -514,14 +514,14 @@ conditional_replacement (basic_block cond_bb, basic_block middle_bb, tmp = create_tmp_var (TREE_TYPE (op0), NULL); add_referenced_var (tmp); cond_tmp = make_ssa_name (tmp, NULL); - new = build2 (MODIFY_EXPR, TREE_TYPE (cond_tmp), cond_tmp, op0); + new = build2_gimple (GIMPLE_MODIFY_STMT, cond_tmp, op0); SSA_NAME_DEF_STMT (cond_tmp) = new; bsi_insert_after (&bsi, new, BSI_NEW_STMT); cond = fold_convert (TREE_TYPE (result), cond_tmp); } - new = build2 (MODIFY_EXPR, TREE_TYPE (new_var1), new_var1, cond); + new = build2_gimple (GIMPLE_MODIFY_STMT, new_var1, cond); } bsi_insert_after (&bsi, new, BSI_NEW_STMT); @@ -715,11 +715,11 @@ minmax_replacement (basic_block cond_bb, basic_block middle_bb, tree lhs, rhs, op0, op1, bound; if (!assign - || TREE_CODE (assign) != MODIFY_EXPR) + || TREE_CODE (assign) != GIMPLE_MODIFY_STMT) return false; - lhs = TREE_OPERAND (assign, 0); - rhs = TREE_OPERAND (assign, 1); + lhs = GIMPLE_STMT_OPERAND (assign, 0); + rhs = GIMPLE_STMT_OPERAND (assign, 1); ass_code = TREE_CODE (rhs); if (ass_code != MAX_EXPR && ass_code != MIN_EXPR) return false; @@ -853,8 +853,8 @@ minmax_replacement (basic_block cond_bb, basic_block middle_bb, /* Emit the statement to compute min/max. */ result = duplicate_ssa_name (PHI_RESULT (phi), NULL); - new = build2 (MODIFY_EXPR, type, result, - build2 (minmax, type, arg0, arg1)); + new = build2_gimple (GIMPLE_MODIFY_STMT, result, + build2 (minmax, type, arg0, arg1)); SSA_NAME_DEF_STMT (result) = new; bsi = bsi_last (cond_bb); bsi_insert_before (&bsi, new, BSI_NEW_STMT); @@ -901,11 +901,11 @@ abs_replacement (basic_block cond_bb, basic_block middle_bb, /* If we got here, then we have found the only executable statement in OTHER_BLOCK. If it is anything other than arg = -arg1 or arg1 = -arg0, then we can not optimize. */ - if (TREE_CODE (assign) != MODIFY_EXPR) + if (TREE_CODE (assign) != GIMPLE_MODIFY_STMT) return false; - lhs = TREE_OPERAND (assign, 0); - rhs = TREE_OPERAND (assign, 1); + lhs = GIMPLE_STMT_OPERAND (assign, 0); + rhs = GIMPLE_STMT_OPERAND (assign, 1); if (TREE_CODE (rhs) != NEGATE_EXPR) return false; @@ -966,8 +966,8 @@ abs_replacement (basic_block cond_bb, basic_block middle_bb, lhs = result; /* Build the modify expression with abs expression. */ - new = build2 (MODIFY_EXPR, TREE_TYPE (lhs), - lhs, build1 (ABS_EXPR, TREE_TYPE (lhs), rhs)); + new = build2_gimple (GIMPLE_MODIFY_STMT, + lhs, build1 (ABS_EXPR, TREE_TYPE (lhs), rhs)); SSA_NAME_DEF_STMT (lhs) = new; bsi = bsi_last (cond_bb); @@ -978,8 +978,8 @@ abs_replacement (basic_block cond_bb, basic_block middle_bb, /* Get the right BSI. We want to insert after the recently added ABS_EXPR statement (which we know is the first statement in the block. */ - new = build2 (MODIFY_EXPR, TREE_TYPE (result), - result, build1 (NEGATE_EXPR, TREE_TYPE (lhs), lhs)); + new = build2_gimple (GIMPLE_MODIFY_STMT, + result, build1 (NEGATE_EXPR, TREE_TYPE (lhs), lhs)); SSA_NAME_DEF_STMT (result) = new; bsi_insert_after (&bsi, new, BSI_NEW_STMT); |