[Bug c++/105780] New: GCC does not vectorise filling array of integers with a value on sse2
denis.yaroshevskij at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon May 30 22:31:03 GMT 2022
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
More information about the Gcc-bugs
mailing list