[PATCH] D40160: All .xdata sections are eligble for ICF

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 16:59:11 PST 2017


rnk created this revision.

Many small functions have identical unwind info because they push the
same sets of CSRs in the same order and have the same stack and prologue
size. The VC linker merges duplicate .xdata, and so should LLD.

This reduces the .xdata section size of clang.exe from 1.8MB to 94KB.


https://reviews.llvm.org/D40160

Files:
  lld/COFF/ICF.cpp
  lld/test/COFF/icf-xdata.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40160.123272.patch
Type: text/x-patch
Size: 3612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171117/a6026905/attachment.bin>


More information about the llvm-commits mailing list