Re: [PATCH] Add optab checks to vector extraction path in vectorizable_store

2017-08-01 Thread Jakub Jelinek
On Tue, Aug 01, 2017 at 03:19:28PM +0200, Richard Biener wrote: > + if (lvectype != vectype) > + { > + tree tem = make_ssa_name (lvectype); > + gimple *pun= gimple_build_assign (tem, build1 > + (VIEW_CONVERT_EXPR, lvectyp

[PATCH] Add optab checks to vector extraction path in vectorizable_store

2017-08-01 Thread Richard Biener
The following adds optab checks to see whether the target prefers vector from vector extracts or integer from punned integer vector extracts. But instead of falling back to elementwise operation we fall back to the vector from vector extract path as spilling the vector to extract from and then do