Re: Handle SLP of call pattern statements

2018-08-03 Thread Richard Sandiford
Richard Biener writes: > On Fri, Jul 20, 2018 at 12:22 PM Richard Sandiford > wrote: >> >> We couldn't vectorise: >> >> for (int j = 0; j < n; ++j) >> { >> for (int i = 0; i < 16; ++i) >> a[i] = (b[i] + c[i]) >> 1; >> a += step; >> b += step; >> c += step;

Re: Handle SLP of call pattern statements

2018-07-20 Thread Richard Biener
On Fri, Jul 20, 2018 at 12:22 PM Richard Sandiford wrote: > > We couldn't vectorise: > > for (int j = 0; j < n; ++j) > { > for (int i = 0; i < 16; ++i) > a[i] = (b[i] + c[i]) >> 1; > a += step; > b += step; > c += step; > } > > at -O3 because cunrolli

Handle SLP of call pattern statements

2018-07-20 Thread Richard Sandiford
We couldn't vectorise: for (int j = 0; j < n; ++j) { for (int i = 0; i < 16; ++i) a[i] = (b[i] + c[i]) >> 1; a += step; b += step; c += step; } at -O3 because cunrolli unrolled the inner loop and SLP couldn't handle AVG_FLOOR patterns (see also PR86504).