Fix nb_iterations calculation in tree-vect-loop-manip.c
commit56c0f85a87ea41fc6251bbf26b84ec7ecb6d34fe
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Nov 2016 14:21:32 +0000 (16 14:21 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Nov 2016 14:21:32 +0000 (16 14:21 +0000)
tree7f3d303da6d5e900c1e8bd1a0346027259bbd5d5
parent59801c196d8132257f9806216ce7258ff2addd25
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.

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