[PATCH] D17066: libLTO: add a ThinLTOCodeGenerator on the model of LTOCodeGenerator.

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 14 21:36:30 PST 2016


joker.eph updated this revision to Diff 47945.
joker.eph added a comment.

More cleanup and a bugfix: cannot run globalopt too early because it breaks ThinLTO.

The issue is that globalopt (after internalize) may turning (former) globals into "unnamed address".
However this happens when optimizing the module, not when the module is used for importing in other modules. The global will be imported as available externally in these modules but won't be available in the source module because the "unamed address".


http://reviews.llvm.org/D17066

Files:
  include/llvm-c/lto.h
  include/llvm/ADT/STLExtras.h
  include/llvm/LTO/LTOModule.h
  include/llvm/LTO/ThinLTOCodeGenerator.h
  lib/LTO/CMakeLists.txt
  lib/LTO/LTOModule.cpp
  lib/LTO/ThinLTOCodeGenerator.cpp
  tools/lto/lto.cpp
  tools/lto/lto.exports

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17066.47945.patch
Type: text/x-patch
Size: 34634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160215/91e08c5d/attachment.bin>


More information about the llvm-commits mailing list