[all-commits] [llvm/llvm-project] ef8e91: [libc++] Forward more often to memmove in copy

philnik777 via All-commits all-commits at lists.llvm.org
Fri Jun 3 11:29:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef8e91826126a23e59a0241e1e3a1eba82db0202
      https://github.com/llvm/llvm-project/commit/ef8e91826126a23e59a0241e1e3a1eba82db0202
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M libcxx/include/__algorithm/copy.h
    M libcxx/include/__iterator/iterator_traits.h
    A libcxx/test/libcxx/algorithms/alg.modifying.operations/copy.pass.cpp
    M libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer.pass.cpp
    M libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_string_view.pass.cpp

  Log Message:
  -----------
  [libc++] Forward more often to memmove in copy

In D122982 I accidentally disabled the memmove optimization. This re-enables it and adds more cases where copy forwards to memmove.
Fixes https://github.com/llvm/llvm-project/issues/33687

Reviewed By: var-const, #libc, ldionne

Spies: pkasting, ayzhao, dcheng, xbolva00, libcxx-commits

Differential Revision: https://reviews.llvm.org/D124328




More information about the All-commits mailing list