Re: Allow inner-loop reductions with variable-length vectors

2018-08-09 Thread Richard Biener
On August 9, 2018 4:40:41 PM GMT+02:00, Richard Sandiford wrote: >While working on PR 86871, I noticed we were being overly restrictive >when handling variable-length vectors. For: > > for (i : ...) >{ > res = ...; > for (j : ...) >res op= ...; > a[i] = res; >} >

Allow inner-loop reductions with variable-length vectors

2018-08-09 Thread Richard Sandiford
While working on PR 86871, I noticed we were being overly restrictive when handling variable-length vectors. For: for (i : ...) { res = ...; for (j : ...) res op= ...; a[i] = res; } we don't need a reduction operation (although we do for double reductions like