[Bug c/88464] New: AVX-512 vectorization of masked scatter failing with "not suitable for scatter store"

2018-12-12 Thread mokreutzer at gmail dot com
NCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mokreutzer at gmail dot com Target Milestone: --- Hi, I have the following simple loop which I want to compile for Skylak

[Bug c++/85057] GCC fails to vectorize code unless dummy loop is added

2018-03-27 Thread mokreutzer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85057 --- Comment #7 from Moritz Kreutzer --- (In reply to Richard Biener from comment #6) > I didn't try to see why but I guess "bad luck" ;) It probably makes > the first access a pointer one as well. Okay, in that case I'd rather call it "good luc

[Bug c++/85057] GCC fails to vectorize code unless dummy loop is added

2018-03-27 Thread mokreutzer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85057 --- Comment #5 from Moritz Kreutzer --- (In reply to Richard Biener from comment #4) > The issue lies in dependence analysis which faces > > _21 = (sizetype) i_24; > _22 = _21 * 8; > _2 = &a + _22; > _13 = MEM[(const Type_t &)&a][i_24].v

[Bug c++/85057] GCC fails to vectorize code unless dummy loop is added

2018-03-26 Thread mokreutzer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85057 --- Comment #3 from Moritz Kreutzer --- (In reply to Richard Biener from comment #1) > Attachment is missing. Thanks! I could swear that I uploaded the attachment in the first place, but it seems like I forgot to click the button to actually att

[Bug c++/85057] GCC fails to vectorize code unless dummy loop is added

2018-03-26 Thread mokreutzer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85057 --- Comment #2 from Moritz Kreutzer --- Created attachment 43752 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43752&action=edit Example which GCC fails to vectorize

[Bug c++/85057] New: GCC fails to vectorize code unless dummy loop is added

2018-03-23 Thread mokreutzer at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mokreutzer at gmail dot com Target Milestone: --- I have a class which represents short vectors (1D, 2D, 3D) and does numeric computations using the expression template engine PETE[1]. The attached example is