diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2024-02-19 18:07:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 18:07:12 -0800 |
commit | 744616b3aebd008a5ad0e9de9f82f5e284440ab1 (patch) | |
tree | e7712d6eac6ee52ee71745ff369c878a14dc0964 /bolt | |
parent | 71e0623110b674765fb9349f449279faa7361e3d (diff) | |
download | llvm-744616b3aebd008a5ad0e9de9f82f5e284440ab1.zip llvm-744616b3aebd008a5ad0e9de9f82f5e284440ab1.tar.gz llvm-744616b3aebd008a5ad0e9de9f82f5e284440ab1.tar.bz2 |
Rename `ThreadPool::getThreadCount()` to `getMaxConcurrency()` (NFC) (#82296)
This is addressing a long-time TODO to rename this misleading API. The
old one is preserved for now but marked deprecated.
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/tools/merge-fdata/merge-fdata.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bolt/tools/merge-fdata/merge-fdata.cpp b/bolt/tools/merge-fdata/merge-fdata.cpp index 104991d..c6dfd3c 100644 --- a/bolt/tools/merge-fdata/merge-fdata.cpp +++ b/bolt/tools/merge-fdata/merge-fdata.cpp @@ -317,7 +317,8 @@ void mergeLegacyProfiles(const SmallVectorImpl<std::string> &Filenames) { ThreadPoolStrategy S = optimal_concurrency( std::max(Filenames.size() / 4, static_cast<size_t>(1))); ThreadPool Pool(S); - DenseMap<llvm::thread::id, ProfileTy> ParsedProfiles(Pool.getThreadCount()); + DenseMap<llvm::thread::id, ProfileTy> ParsedProfiles( + Pool.getMaxConcurrency()); for (const auto &Filename : Filenames) Pool.async(ParseProfile, std::cref(Filename), std::ref(ParsedProfiles)); Pool.wait(); |