Re: [PATCH] vect: Fix permutation counting in VLA-friendly path [PR117270]

2025-01-28 Thread Richard Biener
On Tue, Jan 28, 2025 at 10:05 AM Richard Sandiford wrote: > > vectorizable_slp_permutation_1 has two ways of generating the > permutations: one that looks for repeating patterns and one that > calculates the permutation index for every output element individually. > The former works for VLA and VL

[PATCH] vect: Fix permutation counting in VLA-friendly path [PR117270]

2025-01-28 Thread Richard Sandiford
vectorizable_slp_permutation_1 has two ways of generating the permutations: one that looks for repeating patterns and one that calculates the permutation index for every output element individually. The former works for VLA and VLS whereas the latter only works for VLS. There are two justification