[llvm-bugs] [Bug 40575] New: std::copy to memmove optimisation seems to not work.

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 2 14:14:12 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40575

            Bug ID: 40575
           Summary: std::copy to memmove optimisation seems to not work.
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: denis.yaroshevskij at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

std::copy has an optimization to memmove but it doesn't seem to work:
https://gcc.godbolt.org/z/a6lvSm (no memmove)

I has real consequences:
libstdc++: http://quick-bench.com/vpLxYCWfverSzlWxFjwuXxELD8Q
libc++: http://quick-bench.com/kfsPjkSo79hHiy0ZVrMCn7wU6Xw

-- 
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/20190202/0ac63202/attachment.html>


More information about the llvm-bugs mailing list