[llvm] [BOLT][DWARF][NFC] Add parallelization for processing of DWO debug information (PR #100282)
Sayhaan Siddiqui via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 12:57:39 PDT 2024
================
@@ -757,9 +768,12 @@ void DWARFRewriter::updateDebugInfo() {
: std::optional<std::string>(opts::DwarfOutputPath.c_str());
std::string DWOName = DIEBlder.updateDWONameCompDir(
*StrOffstsWriter, *StrWriter, *CU, DwarfOutputPath, std::nullopt);
- processSplitCU(*CU, **SplitCU, DIEBlder, *TempRangesSectionWriter,
- AddressWriter, DWOName, DwarfOutputPath);
+ ThreadPool.async([&, DwarfOutputPath, DWOName] {
----------------
sayhaan wrote:
Capturing DwarfOutputPath and DWOName by reference in the async call resulted in errors where they were invalid values, likely because the ThreadPool executed it asynchronously so they were out of scope.
https://github.com/llvm/llvm-project/pull/100282
More information about the llvm-commits
mailing list