[01/46] Move special cases out of get_initial_def_for_reduction
commit3dd3e23d46c8fcc1ea370af27cc4fba6867a9ed6
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 14:21:11 +0000 (31 14:21 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 14:21:11 +0000 (31 14:21 +0000)
treef0f5c51a06ed7cf34ab3931f6a4dbe03b657045a
parentd3940cf09bdd4d57931f21c0b132f5722d917171
[01/46] Move special cases out of get_initial_def_for_reduction

This minor clean-up avoids repeating the test for double reductions
and also moves the vect_get_vec_def_for_operand call to the same
function as the corresponding vect_get_vec_def_for_stmt_copy.

2018-07-31  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vect-loop.c (get_initial_def_for_reduction): Move special
cases for nested loops from here to ...
(vect_create_epilog_for_reduction): ...here.  Only call
vect_is_simple_use for inner-loop reductions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263116 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-vect-loop.c