Re: [PATCH] vec: don't select partial vectors when looping on full vectors

2020-09-11 Thread Richard Sandiford
Richard Biener writes: > On Wed, 9 Sep 2020, Andrea Corallo wrote: >> Hi all, >> >> this patch is meant not to generate predication in loop when the >> loop is operating only on full vectors. >> >> Ex: >> >> #+BEGIN_SRC C >> /* Vector length is 256. */ >> void >> f (int *restrict x, int *restr

Re: [PATCH] vec: don't select partial vectors when looping on full vectors

2020-09-10 Thread Richard Biener
On Wed, 9 Sep 2020, Andrea Corallo wrote: > Hi all, > > this patch is meant not to generate predication in loop when the > loop is operating only on full vectors. > > Ex: > > #+BEGIN_SRC C > /* Vector length is 256. */ > void > f (int *restrict x, int *restrict y, unsigned int n) { > for (un

[PATCH] vec: don't select partial vectors when looping on full vectors

2020-09-09 Thread Andrea Corallo
Hi all, this patch is meant not to generate predication in loop when the loop is operating only on full vectors. Ex: #+BEGIN_SRC C /* Vector length is 256. */ void f (int *restrict x, int *restrict y, unsigned int n) { for (unsigned int i = 0; i < n * 8; ++i) x[i] += y[i]; } #+END_SRC Co