[PATCH] D35334: ThinLTO Minimized Bitcode File Size Reduction

Haojie Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 16:19:05 PDT 2017


haojiewang created this revision.
Herald added subscribers: eraman, inglorion, aprantl, mehdi_amini.

Currently the ThinLTO minimized bitcode file only strip the debug info, but there is still a lot of information in the minimized bit code file that will be not used for thin linker. In this patch, most of the extra information is striped to reduce the minimized bitcode file. Now only ModuleVersion, ModuleInfo, ModuleGlobalValueSummary, ModuleHash, Symtab and Strtab are left. Now the minimized bitcode file size is reduced to 15%-30% of the debug info stripped bitcode file size.


https://reviews.llvm.org/D35334

Files:
  include/llvm/Bitcode/BitcodeWriter.h
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  test/Transforms/ThinLTOBitcodeWriter/no-type-md.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35334.106340.patch
Type: text/x-patch
Size: 15823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/1292f4e0/attachment.bin>


More information about the llvm-commits mailing list