Re: Vectorizer size preferences (-mprefer-* on x86)

2018-06-15 Thread Richard Earnshaw (lists)
On 15/06/18 12:48, Richard Biener wrote: > > Hi, > > I'm in the process of changing the vectorizer to consider all > vector sizes as advertised by targetm.autovectorize_vector_sizes > and to decide which one to use based on its cost model. > > I expect that to make sense for example when choosin

Re: Vectorizer size preferences (-mprefer-* on x86)

2018-06-15 Thread Richard Biener
On Fri, 15 Jun 2018, Jan Hubicka wrote: > > > > Hi, > > > > I'm in the process of changing the vectorizer to consider all > > vector sizes as advertised by targetm.autovectorize_vector_sizes > > and to decide which one to use based on its cost model. > > > > I expect that to make sense for exam

Re: Vectorizer size preferences (-mprefer-* on x86)

2018-06-15 Thread Jan Hubicka
> > Hi, > > I'm in the process of changing the vectorizer to consider all > vector sizes as advertised by targetm.autovectorize_vector_sizes > and to decide which one to use based on its cost model. > > I expect that to make sense for example when choosing between > AVX128 and AVX256 since the l