[PATCH] D33922: Apply summary-based dead stripping to regular LTO modules with summaries.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 17:22:10 PDT 2017


pcc created this revision.
Herald added subscribers: eraman, inglorion.
Herald added a reviewer: hiraditya.

If a regular LTO module has a summary index, then instead of linking
it into the combined regular LTO module right away, add it to the
combined summary index and associate it with a special module that
represents the combined regular LTO module.

Any such modules are linked during LTO::run(), at which time we use
the results of summary-based dead stripping to control whether to
link prevailing symbols.

Depends on https://reviews.llvm.org/D33921


https://reviews.llvm.org/D33922

Files:
  clang/lib/CodeGen/BackendUtil.cpp
  clang/test/CodeGen/Inputs/thinlto-multi-module.ll
  clang/test/CodeGen/thinlto-multi-module.ll
  llvm/include/llvm/Bitcode/BitcodeReader.h
  llvm/include/llvm/IR/ModuleSummaryIndex.h
  llvm/include/llvm/LTO/LTO.h
  llvm/lib/Bitcode/Reader/BitcodeReader.cpp
  llvm/lib/LTO/LTO.cpp
  llvm/test/LTO/Resolution/X86/Inputs/dead-strip-fulllto.ll
  llvm/test/LTO/Resolution/X86/dead-strip-fulllto.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33922.101484.patch
Type: text/x-patch
Size: 32519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170606/c199fcdc/attachment.bin>


More information about the llvm-commits mailing list