[llvm-bugs] [Bug 46735] New: __builtin___mempcpy_chk to direct call to mempcpy
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 15 09:28:50 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46735
Bug ID: 46735
Summary: __builtin___mempcpy_chk to direct call to mempcpy
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: gabravier at gmail.com
CC: llvm-bugs at lists.llvm.org
void* f(void *d, const void *s, size_t l)
{
return __builtin___mempcpy_chk(d, s, l, __builtin_object_size(d, 0));
}
This can be optimized to `return mempcpy(d, s, l);`. This optimization is done
by GCC, but not by LLVM.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200715/c88ecce1/attachment.html>
More information about the llvm-bugs
mailing list