[PATCH] D142425: [BOLT][DWARF] Reuse entries in .debug_addr when not modified

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 17:13:57 PST 2023


ayermolo created this revision.
Herald added subscribers: treapster, hoy, modimo, wenlei.
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 a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, yota9, sstefan1.
Herald added a project: LLVM.

In some binaries produced with ThinLTO there are CUs that share entry in
.debug_addr. Before we would generate a new entry for each. Which lead to binary
size increase. This changes the behavior so that we re-use entries in
.debug_addr.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142425

Files:
  bolt/lib/Core/DebugData.cpp
  bolt/test/X86/Inputs/dwarf5-helper1-addr-section-reuse.s
  bolt/test/X86/Inputs/dwarf5-helper2-addr-section-reuse.s
  bolt/test/X86/Inputs/dwarf5-main-addr-section-reuse.s
  bolt/test/X86/dwarf5-addr-section-reuse.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142425.491569.patch
Type: text/x-patch
Size: 23167 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230124/e813fb4e/attachment.bin>


More information about the llvm-commits mailing list