[01/46] Move special cases out of get_initial_def_for_reduction
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 31 Jul 2018 14:21:11 +0000 (14:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 31 Jul 2018 14:21:11 +0000 (14:21 +0000)
commit0847049dc7a630e4bfa079767ed42c742ff6276b
treef0f5c51a06ed7cf34ab3931f6a4dbe03b657045a
parent686dca7612a8ab5ebebad2fc13bd9ea7793a7e40
[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.

From-SVN: r263116
gcc/ChangeLog
gcc/tree-vect-loop.c