Make more use of gimple-fold.h in tree-vect-loop.c
authorRichard Sandiford <richard.sandiford@linaro.org>
Thu, 14 Sep 2017 16:24:31 +0000 (16:24 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 14 Sep 2017 16:24:31 +0000 (16:24 +0000)
commitdccf43aed37281a7bb91a7984a75470ad62eb0f1
treec21c0358a4a4c3ca03d13aae79b8af5c1c535545
parente7c45b6600acfdc0930b980a45a364f77844139a
Make more use of gimple-fold.h in tree-vect-loop.c

This patch makes the vectoriser use the gimple-fold.h routines
in more cases, instead of vect_init_vector.  Later patches want
to use the same interface to handle variable-length vectors.

2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* tree-vect-loop.c (vectorizable_induction): Use gimple_build instead
of vect_init_vector.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r252763
gcc/ChangeLog
gcc/tree-vect-loop.c