https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105780
Bug ID: 105780 Summary: GCC does not vectorise filling array of integers with a value on sse2 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: denis.yaroshevskij at gmail dot com Target Milestone: --- The following code snippet I believe should be auto-vectorised even on sse2 ``` void fill(int* f, int* l, int v) { while (f != l) { *f++ = v; } } ``` Clang does it: https://godbolt.org/z/3bEeE8E8n