https://llvm.org/bugs/show_bug.cgi?id=27206
Bug ID: 27206
Summary: Make std::fill_n use memset_pattern*() for pod types
of the right size
Product: libc++
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
libc++ should use memset_pattern when the input is right (== 4/8/16, type is
pod, target iterator is a pointer) instead of using a loop.
For example, clang/llvm currently emits a loop for fill_n in the following
example:
$ cat test.cpp
struct S {
int i;
};
S v[256];
void foo(const S &s) {
fill_n(v,256,s); // use memset_pattern4(v,&s,256*4) here
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs