Re: [PATCH] Fixup nb_iterations_upper_bound adjustment for vectorized loops

2016-04-29 Thread Ilya Enkovich
On 28 Apr 15:59, Richard Biener wrote: > On Thu, Apr 28, 2016 at 3:26 PM, Ilya Enkovich wrote: > > On 27 Apr 16:05, Richard Biener wrote: > >> >> > >> >> I'd like to see testcases covering the corner-cases - have them have > >> >> upper bound estimates by adjusting known array sizes and also cover

Re: [PATCH] Fixup nb_iterations_upper_bound adjustment for vectorized loops

2016-04-28 Thread Richard Biener
On Thu, Apr 28, 2016 at 3:26 PM, Ilya Enkovich wrote: > On 27 Apr 16:05, Richard Biener wrote: >> >> >> >> I'd like to see testcases covering the corner-cases - have them have >> >> upper bound estimates by adjusting known array sizes and also cover >> >> the case of peeling for gaps. >> > >> > OK

Re: [PATCH] Fixup nb_iterations_upper_bound adjustment for vectorized loops

2016-04-28 Thread Ilya Enkovich
On 27 Apr 16:05, Richard Biener wrote: > >> > >> I'd like to see testcases covering the corner-cases - have them have > >> upper bound estimates by adjusting known array sizes and also cover > >> the case of peeling for gaps. > > > > OK, I'll make more tests. > > Thanks, > > Ilya > > > >> > >> Rich

Re: [PATCH] Fixup nb_iterations_upper_bound adjustment for vectorized loops

2016-04-27 Thread Richard Biener
On Tue, Apr 26, 2016 at 2:29 PM, Ilya Enkovich wrote: > 2016-04-22 10:13 GMT+03:00 Richard Biener : >> On Thu, Apr 21, 2016 at 6:09 PM, Ilya Enkovich >> wrote: >>> Hi, >>> >>> Currently when loop is vectorized we adjust its nb_iterations_upper_bound >>> by dividing it by VF. This is incorrect s

Re: [PATCH] Fixup nb_iterations_upper_bound adjustment for vectorized loops

2016-04-26 Thread Ilya Enkovich
2016-04-22 10:13 GMT+03:00 Richard Biener : > On Thu, Apr 21, 2016 at 6:09 PM, Ilya Enkovich wrote: >> Hi, >> >> Currently when loop is vectorized we adjust its nb_iterations_upper_bound >> by dividing it by VF. This is incorrect since nb_iterations_upper_bound >> is upper bound for ( - 1) and th

Re: [PATCH] Fixup nb_iterations_upper_bound adjustment for vectorized loops

2016-04-22 Thread Richard Biener
On Thu, Apr 21, 2016 at 6:09 PM, Ilya Enkovich wrote: > Hi, > > Currently when loop is vectorized we adjust its nb_iterations_upper_bound > by dividing it by VF. This is incorrect since nb_iterations_upper_bound > is upper bound for ( - 1) and therefore simple > dividing it by VF in many cases gi

[PATCH] Fixup nb_iterations_upper_bound adjustment for vectorized loops

2016-04-21 Thread Ilya Enkovich
Hi, Currently when loop is vectorized we adjust its nb_iterations_upper_bound by dividing it by VF. This is incorrect since nb_iterations_upper_bound is upper bound for ( - 1) and therefore simple dividing it by VF in many cases gives us bounds greater than a real one. Correct value would be ((nb