https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102467
Bug ID: 102467
Summary: Missed SLP discovery for gathers
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: ---
void foo (double * __restrict a, long * __restrict b, double * c)
{
for (int i = 0; i < 1024; ++i)
{
a[2*i] = c[b[2*i]];
a[2*i + 1] = c[b[2*i + 1]];
}
}
is not SLP vectorized.
