summaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index a5708f39a8e..e673aed4fce 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -84,7 +84,7 @@ update_complex_assignment (block_stmt_iterator *bsi, tree r, tree i)
type = TREE_TYPE (TREE_OPERAND (stmt, 1));
TREE_OPERAND (stmt, 1) = build (COMPLEX_EXPR, type, r, i);
- modify_stmt (stmt);
+ mark_stmt_modified (stmt);
}
/* Expand complex addition to scalars:
@@ -136,7 +136,7 @@ expand_complex_libcall (block_stmt_iterator *bsi, tree ar, tree ai,
TREE_OPERAND (stmt, 1)
= build3 (CALL_EXPR, type, build_fold_addr_expr (fn), args, NULL);
- modify_stmt (stmt);
+ update_stmt (stmt);
}
/* Expand complex multiplication to scalars:
@@ -439,7 +439,7 @@ expand_complex_comparison (block_stmt_iterator *bsi, tree ar, tree ai,
gcc_unreachable ();
}
- modify_stmt (stmt);
+ mark_stmt_modified (stmt);
}
/* Process one statement. If we identify a complex operation, expand it. */
@@ -561,6 +561,7 @@ expand_complex_operations_1 (block_stmt_iterator *bsi)
default:
gcc_unreachable ();
}
+ update_stmt_if_modified (stmt);
}
/* Build a constant of type TYPE, made of VALUE's bits replicated
@@ -931,7 +932,7 @@ expand_vector_operations_1 (block_stmt_iterator *bsi)
*p_rhs = expand_vector_addition (bsi, do_binop, do_plus_minus, type,
TREE_OPERAND (rhs, 0),
TREE_OPERAND (rhs, 1), code);
- modify_stmt (bsi_stmt (*bsi));
+ mark_stmt_modified (bsi_stmt (*bsi));
return;
case NEGATE_EXPR:
@@ -941,7 +942,7 @@ expand_vector_operations_1 (block_stmt_iterator *bsi)
*p_rhs = expand_vector_addition (bsi, do_unop, do_negate, type,
TREE_OPERAND (rhs, 0),
NULL_TREE, code);
- modify_stmt (bsi_stmt (*bsi));
+ mark_stmt_modified (bsi_stmt (*bsi));
return;
case BIT_AND_EXPR:
@@ -950,14 +951,14 @@ expand_vector_operations_1 (block_stmt_iterator *bsi)
*p_rhs = expand_vector_parallel (bsi, do_binop, type,
TREE_OPERAND (rhs, 0),
TREE_OPERAND (rhs, 1), code);
- modify_stmt (bsi_stmt (*bsi));
+ mark_stmt_modified (bsi_stmt (*bsi));
return;
case BIT_NOT_EXPR:
*p_rhs = expand_vector_parallel (bsi, do_unop, type,
TREE_OPERAND (rhs, 0),
NULL_TREE, code);
- modify_stmt (bsi_stmt (*bsi));
+ mark_stmt_modified (bsi_stmt (*bsi));
return;
default:
@@ -973,7 +974,7 @@ expand_vector_operations_1 (block_stmt_iterator *bsi)
TREE_OPERAND (rhs, 0),
TREE_OPERAND (rhs, 1), code);
- modify_stmt (bsi_stmt (*bsi));
+ mark_stmt_modified (bsi_stmt (*bsi));
}
static void