gcc/
* tree-vect-loop.c (vectorizable_reduction): Check reduction cost
before setting STMT_VINFO_TYPE.
From-SVN: r173373
+2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
+ before setting STMT_VINFO_TYPE.
+
2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
if (!vec_stmt) /* transformation not required. */
{
- STMT_VINFO_TYPE (stmt_info) = reduc_vec_info_type;
if (!vect_model_reduction_cost (stmt_info, epilog_reduc_code, ncopies))
return false;
+ STMT_VINFO_TYPE (stmt_info) = reduc_vec_info_type;
return true;
}