https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97630
Bug ID: 97630 Summary: [11 Regression] SLP vectorizer leaks memory Product: gcc Version: 11.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: --- We currently leak all memory pointed to from SLP cycles (not the SLP nodes themselves, but the scalar_stmts array and similar). This is because we manage memory by reference counting but that breaks down with cycles. One example is gcc.dg/vect/bb-slp-57.c