[PATCH] D18674: [ThinLTO/gold] Change preempted def to avail extern linkage when possible

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 13:40:39 PDT 2016


tejohnson created this revision.
tejohnson added reviewers: rafael, joker.eph.
tejohnson added a subscriber: llvm-commits.
Herald added a subscriber: joker.eph.

Similar to the approach being discussed for libLTO in D18346,
optimize the ThinLTO backend compilations and object files by converting
preempted weak and linkonce symbols to available_externally when
possible. This ensures that they are dropped and don't unnecessarily
show up in the object file.

http://reviews.llvm.org/D18674

Files:
  test/tools/gold/X86/Inputs/thinlto_linkonceresolution.ll
  test/tools/gold/X86/Inputs/thinlto_weakresolution.ll
  test/tools/gold/X86/thinlto_linkonceresolution.ll
  test/tools/gold/X86/thinlto_weakresolution.ll
  tools/gold/gold-plugin.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18674.52279.patch
Type: text/x-patch
Size: 5587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160331/b54938cc/attachment.bin>


More information about the llvm-commits mailing list