[PATCH] D103292: [lld-macho] Implement ICF

Greg McGary via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 27 16:02:34 PDT 2021


gkm created this revision.
gkm added a reviewer: lld-macho.
Herald added subscribers: dang, jfb.
Herald added a reviewer: int3.
Herald added a project: lld-macho.
gkm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

ICF = Identical C(ode|OMDAT) Folding

This is the LLD ELF/COFF algorithm, adapted for MachO. It is work in progress. Some things work, other's don't. There is only one test case so far, with more to come.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103292

Files:
  lld/MachO/ConcatOutputSection.cpp
  lld/MachO/ConcatOutputSection.h
  lld/MachO/Config.h
  lld/MachO/Driver.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputSection.cpp
  lld/MachO/InputSection.h
  lld/MachO/Options.td
  lld/MachO/SymbolTable.cpp
  lld/MachO/UnwindInfoSection.cpp
  lld/MachO/UnwindInfoSection.h
  lld/MachO/Writer.cpp
  lld/test/MachO/icf.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103292.348410.patch
Type: text/x-patch
Size: 24779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210527/3c7c0bc1/attachment.bin>


More information about the llvm-commits mailing list