https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82426
Bug ID: 82426 Summary: Missed tree-slp-vectorization on -O2 and -O3 Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: linux at carewolf dot com Target Milestone: --- Created attachment 42299 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42299&action=edit vectslp.cpp The attached example is a simple matrix multiplication. With -O3 or -O2 -ftree-slp-vectorize the basic-block is not vectorized. Oddly, with -Os -ftree-slp-vectorize it is.