diff options
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index ef9e75c88c6..2f06d22db3f 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -2632,10 +2632,9 @@ estimate_operator_cost (enum tree_code code, eni_weights *weights) /* These are "free" conversions, or their presumed cost is folded into other operations. */ case RANGE_EXPR: - case CONVERT_EXPR: + CASE_CONVERT: case COMPLEX_EXPR: case PAREN_EXPR: - case NOP_EXPR: return 0; /* Assign cost of 1 to usual operations. @@ -3346,8 +3345,7 @@ expand_call_inline (basic_block bb, gimple stmt, copy_body_data *id) if (is_gimple_assign (stmt)) { gcc_assert (gimple_assign_single_p (stmt) - || gimple_assign_rhs_code (stmt) == NOP_EXPR - || gimple_assign_rhs_code (stmt) == CONVERT_EXPR); + || CONVERT_EXPR_CODE_P (gimple_assign_rhs_code (stmt))); TREE_USED (gimple_assign_rhs1 (stmt)) = 1; } |