This should have been after the early exit for non-vectorised statements.
2017-09-16 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
PR tree-optimization/82228
* tree-vect-loop.c (vectorizable_live_operation): Move initialization
of ncopies.
From-SVN: r252888
+2017-09-16 Richard Sandiford <richard.sandiford@linaro.org>
+
+ PR tree-optimization/82228
+ * tree-vect-loop.c (vectorizable_live_operation): Move initialization
+ of ncopies.
+
2017-09-16 Chung-Ju Wu <jasonwucj@gmail.com>
* common/config/nds32/nds32-common.c
gcc_assert (STMT_VINFO_LIVE_P (stmt_info));
- if (slp_node)
- ncopies = 1;
- else
- ncopies = vect_get_num_copies (loop_vinfo, vectype);
-
if (STMT_VINFO_DEF_TYPE (stmt_info) == vect_reduction_def)
return false;
return true;
}
+ if (slp_node)
+ ncopies = 1;
+ else
+ ncopies = vect_get_num_copies (loop_vinfo, vectype);
+
if (!vec_stmt)
/* No transformation required. */
return true;