Re: [PATCH] Reintroduce vec_shl_optab and use it for #pragma omp scan inclusive

2019-06-19 Thread Richard Biener
On June 19, 2019 2:46:15 PM GMT+02:00, Richard Sandiford wrote: >Richard Biener writes: >> On June 19, 2019 11:05:42 AM GMT+02:00, Richard Sandiford > wrote: >>>Richard Biener writes: On June 19, 2019 10:55:16 AM GMT+02:00, Jakub Jelinek >>> wrote: >Hi! > >When VEC_[LR]SHIFT_EX

Re: [PATCH] Reintroduce vec_shl_optab and use it for #pragma omp scan inclusive

2019-06-19 Thread Jakub Jelinek
On Wed, Jun 19, 2019 at 01:46:15PM +0100, Richard Sandiford wrote: > For can_vec_perm_const_p we could either add zeroness information > to vec_perm_indices or provide it separately (e.g. with tree inputs). > In the latter case the zeroness could be relayed to > targetm.vec_perm_const by passing ze

Re: [PATCH] Reintroduce vec_shl_optab and use it for #pragma omp scan inclusive

2019-06-19 Thread Richard Sandiford
Richard Biener writes: > On June 19, 2019 11:05:42 AM GMT+02:00, Richard Sandiford > wrote: >>Richard Biener writes: >>> On June 19, 2019 10:55:16 AM GMT+02:00, Jakub Jelinek >> wrote: Hi! When VEC_[LR]SHIFT_EXPR has been replaced with VEC_PERM_EXPR, vec_shl_optab has been

Re: [PATCH] Reintroduce vec_shl_optab and use it for #pragma omp scan inclusive

2019-06-19 Thread Richard Biener
On June 19, 2019 11:05:42 AM GMT+02:00, Richard Sandiford wrote: >Richard Biener writes: >> On June 19, 2019 10:55:16 AM GMT+02:00, Jakub Jelinek > wrote: >>>Hi! >>> >>>When VEC_[LR]SHIFT_EXPR has been replaced with VEC_PERM_EXPR, >>>vec_shl_optab >>>has been removed as unused, because we only u

Re: [PATCH] Reintroduce vec_shl_optab and use it for #pragma omp scan inclusive

2019-06-19 Thread Richard Sandiford
Richard Biener writes: > On June 19, 2019 10:55:16 AM GMT+02:00, Jakub Jelinek > wrote: >>Hi! >> >>When VEC_[LR]SHIFT_EXPR has been replaced with VEC_PERM_EXPR, >>vec_shl_optab >>has been removed as unused, because we only used vec_shr_optab for the >>reductions. >>Without this patch the vect-si

Re: [PATCH] Reintroduce vec_shl_optab and use it for #pragma omp scan inclusive

2019-06-19 Thread Richard Biener
On June 19, 2019 10:55:16 AM GMT+02:00, Jakub Jelinek wrote: >Hi! > >When VEC_[LR]SHIFT_EXPR has been replaced with VEC_PERM_EXPR, >vec_shl_optab >has been removed as unused, because we only used vec_shr_optab for the >reductions. >Without this patch the vect-simd-*.c tests can be vectorized just

[PATCH] Reintroduce vec_shl_optab and use it for #pragma omp scan inclusive

2019-06-19 Thread Jakub Jelinek
Hi! When VEC_[LR]SHIFT_EXPR has been replaced with VEC_PERM_EXPR, vec_shl_optab has been removed as unused, because we only used vec_shr_optab for the reductions. Without this patch the vect-simd-*.c tests can be vectorized just fine for SSE4 and above, but can't be with SSE2. As the comment in t