[PATCH] D128093: [lld-macho] Initial support for Linker Optimization Hints

Daniel Bertalan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 18 10:57:49 PDT 2022


BertalanD updated this revision to Diff 438136.
BertalanD added a comment.
Herald added a subscriber: mgrang.

- Reserve the expected size of `performedRelocations` upfront
- Store the optimization hints into a large per-object vector instead of a per-(sub)section one. Brings down the overhead to just above 7% when linking Chromium.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128093/new/

https://reviews.llvm.org/D128093

Files:
  lld/MachO/Arch/ARM64.cpp
  lld/MachO/Config.h
  lld/MachO/Driver.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputFiles.h
  lld/MachO/InputSection.cpp
  lld/MachO/InputSection.h
  lld/MachO/Options.td
  lld/MachO/Relocations.h
  lld/MachO/Target.h
  lld/test/MachO/hint-adrp-add.s
  llvm/include/llvm/BinaryFormat/MachO.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128093.438136.patch
Type: text/x-patch
Size: 16439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220618/c4f96522/attachment.bin>


More information about the llvm-commits mailing list