Re: Handle SLP permutations for variable-length vectors

2018-08-24 Thread Richard Biener
On Thu, Aug 23, 2018 at 11:08 AM Richard Sandiford wrote: > > The SLP code currently punts for all variable-length permutes. > This patch makes it handle the easy case of N->N permutes in which > the number of vector lanes is a multiple of N. Every permute then > uses the same mask, and that mask

Handle SLP permutations for variable-length vectors

2018-08-23 Thread Richard Sandiford
The SLP code currently punts for all variable-length permutes. This patch makes it handle the easy case of N->N permutes in which the number of vector lanes is a multiple of N. Every permute then uses the same mask, and that mask repeats (with a stride) every N elements. The patch uses the same p