[llvm] [BOLT][DWARF][NFC] Add parallelization for processing of DWO debug information (PR #100282)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 12:48:28 PDT 2024


================
@@ -738,6 +744,11 @@ void DWARFRewriter::updateDebugInfo() {
   CUPartitionVector PartVec = partitionCUs(*BC.DwCtx);
   for (std::vector<DWARFUnit *> &Vec : PartVec) {
     DIEBlder.buildCompileUnits(Vec);
+    const int ThreadCount = (opts::DebugThreadCount < opts::ThreadCount)
----------------
ayermolo wrote:

why not just use std::min?

https://github.com/llvm/llvm-project/pull/100282


More information about the llvm-commits mailing list