Re: [PATCH] vect: Fix load costs for SLP permutes

2020-10-29 Thread Richard Biener via Gcc-patches
On Thu, Oct 29, 2020 at 12:52 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Wed, Oct 28, 2020 at 2:39 PM Richard Sandiford via Gcc-patches > > wrote: > >> > >> For the following test case (compiled with load/store lanes > >> disabled locally): > >> > >> void > >> f (uint32_t

Re: [PATCH] vect: Fix load costs for SLP permutes

2020-10-29 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Wed, Oct 28, 2020 at 2:39 PM Richard Sandiford via Gcc-patches > wrote: >> >> For the following test case (compiled with load/store lanes >> disabled locally): >> >> void >> f (uint32_t *restrict x, uint8_t *restrict y, int n) >> { >> for (int i = 0; i < n; +

Re: [PATCH] vect: Fix load costs for SLP permutes

2020-10-28 Thread Richard Biener via Gcc-patches
On Wed, Oct 28, 2020 at 2:39 PM Richard Sandiford via Gcc-patches wrote: > > For the following test case (compiled with load/store lanes > disabled locally): > > void > f (uint32_t *restrict x, uint8_t *restrict y, int n) > { > for (int i = 0; i < n; ++i) > { > x[i * 2] = x

[PATCH] vect: Fix load costs for SLP permutes

2020-10-28 Thread Richard Sandiford via Gcc-patches
For the following test case (compiled with load/store lanes disabled locally): void f (uint32_t *restrict x, uint8_t *restrict y, int n) { for (int i = 0; i < n; ++i) { x[i * 2] = x[i * 2] + y[i * 2]; x[i * 2 + 1] = x[i * 2 + 1] + y[i * 2]; } } we have a re