aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-09-20 09:46:22 -0400
committerLouis Dionne <ldionne.2@gmail.com>2024-09-20 09:48:58 -0400
commitef44e4659878f256a46476efcf0398f3dd510f54 (patch)
tree4a80e4a7e25ee4b12bfa5bfb4c34f5d50beaa439 /libcxx/src
parentc320df4a2c9d7be10caea9a423d2bfbdcaae6a39 (diff)
downloadllvm-ef44e4659878f256a46476efcf0398f3dd510f54.zip
llvm-ef44e4659878f256a46476efcf0398f3dd510f54.tar.gz
llvm-ef44e4659878f256a46476efcf0398f3dd510f54.tar.bz2
Revert "[libc++] Simplify the implementation of std::sort a bit (#104902)"
This reverts commit d4ffccfce103b01401b8a9222e373f2d404f8439, which caused a performance regression that needs to be investigated further.
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/algorithm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/src/algorithm.cpp b/libcxx/src/algorithm.cpp
index a7c39b5..af9d60a 100644
--- a/libcxx/src/algorithm.cpp
+++ b/libcxx/src/algorithm.cpp
@@ -21,7 +21,8 @@ void __sort(RandomAccessIterator first, RandomAccessIterator last, Comp comp) {
std::__introsort<_ClassicAlgPolicy,
ranges::less,
RandomAccessIterator,
- __use_branchless_sort<ranges::less, RandomAccessIterator>>(first, last, ranges::less{}, depth_limit);
+ __use_branchless_sort<ranges::less, RandomAccessIterator>::value>(
+ first, last, ranges::less{}, depth_limit);
}
// clang-format off