https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96043
Bug ID: 96043 Summary: BB vectorizer costing lumps everything together 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: --- Currently the basic-block vectorizer sums up independent opportunities and does an overall decision so that "good" vectorizations help "bad" vectorizations to be considered and "bad" vectorizations could make "good" vectorizations not to happen. Instead the basic-block vectorizer should cost independent opportunities (disjunct portions of the SLP graph) independently. I'm struggling to find a testcase the basic-block vectorizer rejects based on costing at the moment though...