Re: Fix nb_iterations calculation in tree-vect-loop-manip.c

2016-11-16 Thread Richard Biener
On Tue, Nov 15, 2016 at 4:54 PM, Richard Sandiford wrote: > Richard Biener writes: >> On Tue, Nov 15, 2016 at 1:44 PM, Richard Sandiford >> wrote: >>> We previously stored the number of loop iterations rather >>> than the number of latch iterations. >> >> So ->nb_iterations was unused without SV

Re: Fix nb_iterations calculation in tree-vect-loop-manip.c

2016-11-15 Thread Richard Sandiford
Richard Biener writes: > On Tue, Nov 15, 2016 at 1:44 PM, Richard Sandiford > wrote: >> We previously stored the number of loop iterations rather >> than the number of latch iterations. > > So ->nb_iterations was unused without SVE? Otherwise can you please > add a testcase? TBH I can't remembe

Re: Fix nb_iterations calculation in tree-vect-loop-manip.c

2016-11-15 Thread Richard Biener
On Tue, Nov 15, 2016 at 1:44 PM, Richard Sandiford wrote: > We previously stored the number of loop iterations rather > than the number of latch iterations. So ->nb_iterations was unused without SVE? Otherwise can you please add a testcase? Thanks, Richard. > Tested on aarch64-linux-gnu and x8

Fix nb_iterations calculation in tree-vect-loop-manip.c

2016-11-15 Thread Richard Sandiford
We previously stored the number of loop iterations rather than the number of latch iterations. Tested on aarch64-linux-gnu and x86_64-linux-gnu. OK to install? Thanks, Richard [ This patch is part of the SVE series posted here: https://gcc.gnu.org/ml/gcc/2016-11/msg00030.html ] gcc/ 2016-11