Fix nb_iterations calculation in tree-vect-loop-manip.c
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 16 Nov 2016 14:21:32 +0000 (14:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 16 Nov 2016 14:21:32 +0000 (14:21 +0000)
commit711188895e4d910aef399ac37084627e003433a8
tree7f3d303da6d5e900c1e8bd1a0346027259bbd5d5
parentae1a0866a17b854623ec824224ad68a3db571b43
Fix nb_iterations calculation in tree-vect-loop-manip.c

We previously stored the number of loop iterations rather
than the number of latch iterations.

gcc/
2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

* tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
nb_iterations to the number of latch iterations rather than the
number of loop iterations.

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