[PATCH] D151909: [BOLT][DWARF] Change to process and write out TUs first, then CUs in batches.

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 10:34:28 PDT 2023


ayermolo created this revision.
Herald added subscribers: treapster, hoy, modimo, wenlei, arphaman, mgrang.
Herald added a reviewer: rafauler.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
ayermolo requested review of this revision.
Herald added subscribers: llvm-commits, yota9, aheejin.
Herald added a project: LLVM.

To reduce memory footprint changed so that we process and write out TUs first,
reset DIEBuilder and process CUs. CUs are processed in buckets. First bucket
contains all the CUs with cross CU references. Rest processd one at a time.

Depends on D151908 <https://reviews.llvm.org/D151908>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151909

Files:
  bolt/include/bolt/Core/DIEBuilder.h
  bolt/include/bolt/Core/DebugData.h
  bolt/include/bolt/Rewrite/DWARFRewriter.h
  bolt/lib/Core/DIEBuilder.cpp
  bolt/lib/Core/DebugData.cpp
  bolt/lib/Rewrite/DWARFRewriter.cpp
  bolt/test/X86/Inputs/dwarf5-helper1-addr-section-reuse.s
  bolt/test/X86/Inputs/dwarf5-helper2-addr-section-reuse.s
  bolt/test/X86/dwarf4-types-dwarf5-types.test
  bolt/test/X86/dwarf5-gdb-index-types-gdb-generated-gdb11.test
  bolt/test/X86/dwarf5-gdb-index-types-gdb-generated-gdb9.test
  bolt/test/X86/dwarf5-gdb-index-types-lld-generated.test
  bolt/test/X86/dwarf5-locexpr-referrence.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151909.527494.patch
Type: text/x-patch
Size: 77656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230601/cef19ebc/attachment.bin>


More information about the llvm-commits mailing list