[PATCH] D121053: [lld-macho] Deduplicate the `__objc_classrefs` section contents
    Jez Ng via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Mar  5 09:51:30 PST 2022
    
    
  
int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added projects: lld-macho, All.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
ld64 breaks down `__objc_classrefs` on a per-word level and deduplicates
them. This greatly reduces the number of bind entries emitted (and
therefore the amount of work `dyld` has to do at runtime). For
chromium_framework, this change to LLD cuts the number of (non-lazy)
binds from 912 to 190, getting us to parity with ld64 in this aspect.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D121053
Files:
  lld/MachO/ICF.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputSection.cpp
  lld/MachO/InputSection.h
  lld/test/MachO/objc-classrefs-dedup.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121053.413225.patch
Type: text/x-patch
Size: 5537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220305/c3aacef8/attachment.bin>
    
    
More information about the llvm-commits
mailing list