[all-commits] [llvm/llvm-project] 4e112e: Reapply "[libc++] Optimize vector growing of trivi...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Sat Feb 3 15:28:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e112e5c1c8511056030294af3264da35f95d93c
      https://github.com/llvm/llvm-project/commit/4e112e5c1c8511056030294af3264da35f95d93c
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2024-02-04 (Sun, 04 Feb 2024)

  Changed paths:
    M libcxx/benchmarks/ContainerBenchmarks.h
    M libcxx/benchmarks/vector_operations.bench.cpp
    M libcxx/docs/ReleaseNotes/19.rst
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__memory/uninitialized_algorithms.h
    M libcxx/include/__memory/unique_ptr.h
    A libcxx/include/__type_traits/is_trivially_relocatable.h
    M libcxx/include/libcxx.imp
    M libcxx/include/module.modulemap.in
    M libcxx/include/string
    M libcxx/include/vector
    A libcxx/test/libcxx/type_traits/is_trivially_relocatable.compile.pass.cpp
    A libcxx/test/std/containers/sequences/vector/vector.modifiers/destory_elements.pass.cpp
    M libcxx/test/support/count_new.h

  Log Message:
  -----------
  Reapply "[libc++] Optimize vector growing of trivially relocatable types" (#80558)

This reapplies #76657. Non-trivial elements didn't get destroyed
previously. This fixes the bug and adds tests for all the vector
insertion functions.




More information about the All-commits mailing list