+2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * tree-complex.c (expand_complex_comparison): Use fold_convert instead
+ of convert.
+ * tree-inline.c (setup_one_parameter): Likewise.
+ * tree-sra.c (csc_build_component_ref): Likewise.
+ * tree-ssa-ccp.c (ccp_fold): Likewise.
+ * tree-ssa-copy.c (cprop_operand): Likewise.
+ * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
+ * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
+
2004-06-09 J"orn Rennecke <joern.rennecke@superh.com>
PR rtl-optimization/15521:
/* FALLTHRU */
case MODIFY_EXPR:
type = TREE_TYPE (TREE_OPERAND (stmt, 1));
- TREE_OPERAND (stmt, 1) = convert (type, cc);
+ TREE_OPERAND (stmt, 1) = fold_convert (type, cc);
break;
case COND_EXPR:
TREE_OPERAND (stmt, 0) = cc;
the argument to the proper type in case it was promoted. */
if (value)
{
- tree rhs = convert (TREE_TYPE (var), value);
+ tree rhs = fold_convert (TREE_TYPE (var), value);
if (rhs == error_mark_node)
return;
the entire structure should be zeroed. */
if (CONSTRUCTOR_ELTS (base))
abort ();
- return convert (TREE_TYPE (field), integer_zero_node);
+ return fold_convert (TREE_TYPE (field), integer_zero_node);
default:
/* Avoid sharing BASE when building the different COMPONENT_REFs.
if (retval)
{
if (TREE_TYPE (retval) != TREE_TYPE (rhs))
- retval = convert (TREE_TYPE (rhs), retval);
+ retval = fold_convert (TREE_TYPE (rhs), retval);
if (TREE_TYPE (retval) == TREE_TYPE (rhs))
return retval;
if (!lang_hooks.types_compatible_p (op_type, val_type)
&& TREE_CODE (val) != SSA_NAME)
{
- val = convert (TREE_TYPE (*op_p), val);
+ val = fold_convert (TREE_TYPE (*op_p), val);
if (!is_gimple_min_invariant (val)
&& TREE_CODE (val) != SSA_NAME)
return false;
TREE_SET_CODE (TREE_OPERAND (dummy_cond, 0), LE_EXPR);
TREE_OPERAND (TREE_OPERAND (dummy_cond, 0), 0) = op;
TREE_OPERAND (TREE_OPERAND (dummy_cond, 0), 1)
- = convert (type, integer_zero_node);
+ = fold_convert (type, integer_zero_node);
}
val = simplify_cond_and_lookup_avail_expr (dummy_cond,
&bd->avail_exprs,
TREE_SET_CODE (TREE_OPERAND (dummy_cond, 0), GE_EXPR);
TREE_OPERAND (TREE_OPERAND (dummy_cond, 0), 0) = op;
TREE_OPERAND (TREE_OPERAND (dummy_cond, 0), 1)
- = convert (type, integer_zero_node);
+ = fold_convert (type, integer_zero_node);
val = simplify_cond_and_lookup_avail_expr (dummy_cond,
&bd->avail_exprs,
add_referenced_tmp_var (tmp);
phi = create_phi_node (tmp, first);
- add_phi_arg (&phi, convert (ret_type, integer_zero_node),
+ add_phi_arg (&phi, fold_convert (ret_type, integer_zero_node),
first->pred);
a_acc = PHI_RESULT (phi);
}
add_referenced_tmp_var (tmp);
phi = create_phi_node (tmp, first);
- add_phi_arg (&phi, convert (ret_type, integer_one_node),
+ add_phi_arg (&phi, fold_convert (ret_type, integer_one_node),
first->pred);
m_acc = PHI_RESULT (phi);
}