llvm-project/libcxx/test/libcxx
Vedant Kumar fb36d079e5 Low-hanging fruit optimization in string::__move_assign().
shrink_to_fit() ends up doing a lot work to get information that we
already know since we just called clear(). This change seems concise
enough to be worth the couple extra lines and my benchmarks show that it
is indeed a pretty decent win. It looks like the same thing is going on
twice in __copy_assign_alloc(), but I didn't want to go overboard since
this is my first contribution to llvm/libc++.

Patch by Timothy VanSlyke!

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

llvm-svn: 327064
2018-03-08 21:15:26 +00:00
..
algorithms [libcxx] [test] Make files consistently end with newlines, NFC. 2017-07-29 00:55:22 +00:00
atomics update XFAIL comments with more details 2017-04-21 03:09:40 +00:00
containers [libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types. 2018-02-07 21:06:13 +00:00
debug Fix PR35564 - std::list splice/erase incorrectly throw in debug mode. 2018-01-25 00:02:48 +00:00
depr libcxx: Move #include_next <math.h> out of header guard in wrapper header. 2018-01-26 01:19:23 +00:00
diagnostics Fix nodiscard test when modules are enabled 2017-11-19 03:50:35 +00:00
experimental Remove more of the std::experimental bits that are now in std::. All the _v type aliases, conjunction/disjunction, apply, etc. See https://libcxx.llvm.org/TS_deprecation.html 2018-02-06 23:13:48 +00:00
extensions Fix or move various non-standard tests. 2016-04-29 04:07:45 +00:00
fuzzing Add more fuzzing bits: partial_sort_copy, partition_copy, unique, unique_copy. No functional change to libc++; this is all test infastructure 2017-10-30 19:51:58 +00:00
input.output Work around Clang bug introduced in r324062 2018-02-03 01:45:35 +00:00
iterators [libcxx] [test] Untabify, NFC. 2017-07-29 00:55:10 +00:00
language.support [libcxx] Mark test cxa_deleted_virtual.pass.cpp as failing for previous libcxx versions. 2017-11-08 22:30:29 +00:00
localization update XFAIL comments with more details 2017-04-21 03:09:40 +00:00
memory Improve a test. NFC 2018-02-08 05:47:40 +00:00
modules XFAIL Windows test failures under test/libcxx 2017-04-21 01:48:02 +00:00
numerics [libcxx] Improve accuracy of complex asinh and acosh 2018-02-19 15:41:36 +00:00
selftest Change a bunch of comments from C++1z to C++17. NFC 2017-11-02 15:03:25 +00:00
strings Low-hanging fruit optimization in string::__move_assign(). 2018-03-08 21:15:26 +00:00
thread [libcxx] [test] Fix URLs in comments and make them HTTPS. NFC. 2017-08-05 00:44:24 +00:00
type_traits [libcxx] [test] Make files consistently end with newlines, NFC. 2017-07-29 00:55:22 +00:00
utilities [libc++] Fix PR20855 -- libc++ incorrectly diagnoses illegal reference binding in std::tuple. 2018-01-24 22:14:01 +00:00
double_include.sh.cpp Remove more of the std::experimental bits that are now in std::. All the _v type aliases, conjunction/disjunction, apply, etc. See https://libcxx.llvm.org/TS_deprecation.html 2018-02-06 23:13:48 +00:00
include_as_c.sh.cpp Allow the libc++ C header wrappers to be included when compiling C. 2017-06-16 01:57:41 +00:00
libcpp_version.pass.cpp Add test that _LIBCPP_VERSION matches __libcpp_version 2016-12-23 19:38:43 +00:00
min_max_macros.sh.cpp Remove more of the std::experimental bits that are now in std::. All the _v type aliases, conjunction/disjunction, apply, etc. See https://libcxx.llvm.org/TS_deprecation.html 2018-02-06 23:13:48 +00:00