[PATCH] D104671: [lld-macho] Extend ICF to literal sections
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 21 14:22:09 PDT 2021
int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a subscriber: dang.
Herald added a reviewer: gkm.
Herald added a project: lld-macho.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Literal sections can be deduplicated before running ICF. That makes it
easy to compare them during ICF: we can tell if two literals are
constant-equal by comparing their offsets in their OutputSection.
LLD-ELF takes a similar approach.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104671
Files:
lld/MachO/Driver.cpp
lld/MachO/ICF.cpp
lld/MachO/InputSection.cpp
lld/MachO/Options.td
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/MachO/Writer.cpp
lld/test/MachO/icf-literals.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104671.353489.patch
Type: text/x-patch
Size: 9980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210621/d41af750/attachment.bin>
More information about the llvm-commits
mailing list