llvm-project
d4ffccfc - [libc++] Simplify the implementation of std::sort a bit (#104902)

Commit
1 year ago
[libc++] Simplify the implementation of std::sort a bit (#104902) This does a few things to canonicalize the library a bit. Specifically - use `__desugars_to_v` instead of the custom `__is_simple_comparator` - make `__use_branchless_sort` an inline variable - remove the `_maybe_branchless` versions of the `__sortN` functions and overload based on whether we can do branchless sorting instead.
Author
Parents
Loading