[PATCH] D104346: [lld][MachO] Sort symbols in parallel in -map
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 23:22:10 PDT 2021
int3 added inline comments.
================
Comment at: lld/MachO/MapFile.cpp:55
for (auto &it : ret)
- llvm::stable_sort(it.second, [](Defined *a, Defined *b) {
- return a->getVA() < b->getVA();
- });
+ llvm::parallel::detail::parallel_sort(
+ it.second.begin(), it.second.end(), [](Defined *a, Defined *b) {
----------------
TH3CHARLie wrote:
> int3 wrote:
> > I think this can just be `llvm::parallel_sort` (and with the `using namespace llvm` above, we don't even need the llvm::). Stuff under `detail` namespaces shouldn't be used directly -- they're implementation details
> `parallel_sort` is not available in `llvm` namespace, `parallelSort` is. So maybe we should use `parallelSort` here?
ah yes. I was thinking of `parallelSort`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104346/new/
https://reviews.llvm.org/D104346
More information about the llvm-commits
mailing list