[PATCH] D129830: [lld-macho] Support folding of functions with identical LSDAs

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 21:25:15 PDT 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.

To do this, we need to zero out the embedded addend in the compact
unwind entry that points to the LSDA.

No observable difference in perf on chromium_framework:

             base           diff           difference (95% CI)
  sys_time   1.722 ± 0.029  1.727 ± 0.045  [  -1.0% ..   +1.5%]
  user_time  9.382 ± 0.058  9.368 ± 0.101  [  -0.7% ..   +0.4%]
  wall_time  8.165 ± 0.108  8.171 ± 0.142  [  -0.8% ..   +1.0%]
  samples    23             24


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129830

Files:
  lld/MachO/ICF.cpp
  lld/MachO/InputSection.cpp
  lld/MachO/InputSection.h
  lld/test/MachO/icf.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129830.444870.patch
Type: text/x-patch
Size: 7924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220715/4e24ba10/attachment.bin>


More information about the llvm-commits mailing list