[llvm] [DWARFLinker] Deduplicate .debug_frame CIEs in the parallel linker (PR #195393)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 10:52:58 PDT 2026


================
@@ -196,13 +194,36 @@ Error DWARFLinkerImpl::link() {
         // Link object file.
         if (Error Err = Context->link(ArtificialTypeUnit.get()))
           GlobalData.error(std::move(Err), Context->InputDWARFFile.FileName);
-
-        Context->InputDWARFFile.unload();
----------------
alx32 wrote:

Do we have a sense for the peak memory impact of delaying `unload` until after all contexts have linked? We’ve seen DWARF generation cause memory issues - mainly when doing parallel invocations, so I’m wondering whether this is measurable in practice or mostly theoretical.



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


More information about the llvm-commits mailing list