PR82228: Move ncopies calculation in vectorizable_live_operation
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
This commit is contained in:
parent
4a8d26ab79
commit
78d459bbbb
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -7029,11 +7029,6 @@ vectorizable_live_operation (gimple *stmt,
|
||||
|
||||
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;
|
||||
|
||||
@ -7054,6 +7049,11 @@ vectorizable_live_operation (gimple *stmt,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (slp_node)
|
||||
ncopies = 1;
|
||||
else
|
||||
ncopies = vect_get_num_copies (loop_vinfo, vectype);
|
||||
|
||||
if (!vec_stmt)
|
||||
/* No transformation required. */
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user