Re: [RFC] #pragma omp scan inclusive vectorization

2019-06-16 Thread Richard Biener
On Fri, 14 Jun 2019, Jakub Jelinek wrote: > Hi! > > OpenMP 5.0 introduced scan reductions, like: > #pragma omp simd reduction (inscan, +:r) > for (int i = 0; i < 1024; i++) > { > r += a[i]; > #pragma omp scan inclusive(r) > b[i] = r; > } > where there are 2 parts of

[RFC] #pragma omp scan inclusive vectorization

2019-06-14 Thread Jakub Jelinek
Hi! OpenMP 5.0 introduced scan reductions, like: #pragma omp simd reduction (inscan, +:r) for (int i = 0; i < 1024; i++) { r += a[i]; #pragma omp scan inclusive(r) b[i] = r; } where there are 2 parts of code in each iteration, one which is supposed to compute the valu