Re: [PATCH][i386] Fix scalar costing in ix86_add_stmt_cost

2018-10-07 Thread H.J. Lu
On Fri, Oct 5, 2018 at 4:29 AM Jan Hubicka wrote: > > > > > The following fixes bogus differences in scalar iteration cost > > computed by the vectorizer when comparing 128 and 256 bit vectorizations. > > This was caused by the hook looking at the vector types mode even > > for kind == scalar_stmt

Re: [PATCH][i386] Fix scalar costing in ix86_add_stmt_cost

2018-10-05 Thread Jan Hubicka
> > The following fixes bogus differences in scalar iteration cost > computed by the vectorizer when comparing 128 and 256 bit vectorizations. > This was caused by the hook looking at the vector types mode even > for kind == scalar_stmt and thus returning vector operation costs > for things like a

Re: [PATCH][i386] Fix scalar costing in ix86_add_stmt_cost

2018-10-04 Thread Richard Biener
On Thu, 4 Oct 2018, Richard Biener wrote: > > The following fixes bogus differences in scalar iteration cost > computed by the vectorizer when comparing 128 and 256 bit vectorizations. > This was caused by the hook looking at the vector types mode even > for kind == scalar_stmt and thus returning

[PATCH][i386] Fix scalar costing in ix86_add_stmt_cost

2018-10-04 Thread Richard Biener
The following fixes bogus differences in scalar iteration cost computed by the vectorizer when comparing 128 and 256 bit vectorizations. This was caused by the hook looking at the vector types mode even for kind == scalar_stmt and thus returning vector operation costs for things like add or negat