[PATCH] D49362: [ThinLTO] Compute constant references

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 2 09:55:45 PDT 2018


evgeny777 updated this revision to Diff 158785.
evgeny777 added a comment.

1. Now importing globals list from DICompileUnit in IRMover. This is needed because we may internalise GV in destination module, so it can reach final link.

2. Fixed bug which caused llvm-lto internalising exported symbol with `-thinlto-action=import`

3. Overall approach was reimplemented in much simpler way

4. Added extra tests.


https://reviews.llvm.org/D49362

Files:
  include/llvm/Bitcode/LLVMBitCodes.h
  include/llvm/IR/ModuleSummaryIndex.h
  include/llvm/Linker/IRMover.h
  include/llvm/Transforms/IPO/FunctionImport.h
  lib/Analysis/ModuleSummaryAnalysis.cpp
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/IR/ModuleSummaryIndex.cpp
  lib/LTO/LTO.cpp
  lib/LTO/ThinLTOCodeGenerator.cpp
  lib/Linker/IRMover.cpp
  lib/Linker/LinkModules.cpp
  lib/Transforms/IPO/FunctionImport.cpp
  test/Bitcode/thinlto-function-summary-callgraph-relbf.ll
  test/Bitcode/thinlto-function-summary-callgraph.ll
  test/ThinLTO/X86/Inputs/globals-import.ll
  test/ThinLTO/X86/Inputs/index-const-prop.ll
  test/ThinLTO/X86/dot-dumper.ll
  test/ThinLTO/X86/export.ll
  test/ThinLTO/X86/funcimport.ll
  test/ThinLTO/X86/globals-import-const-fold.ll
  test/ThinLTO/X86/globals-import.ll
  test/ThinLTO/X86/index-const-prop.ll
  test/ThinLTO/X86/index-const-prop2.ll
  tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49362.158785.patch
Type: text/x-patch
Size: 44946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180802/1264ca5d/attachment-0001.bin>


More information about the llvm-commits mailing list