https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104240
Bug ID: 104240 Summary: SLP discovery does not consider swapping comparisons Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- The following testcase is not vectorized because of a < vs > operation mismatch. void foo (int *c, float *x, float *y) { c[0] = x[0] < y[0]; c[1] = y[1] > x[1]; c[2] = x[2] < y[2]; c[3] = x[3] < y[3]; }