[PATCH] D154364: [LTO] Allow library calls to be internalized in freestanding mode

Steven Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 3 13:20:48 PDT 2023


steven_wu added a comment.

I think the strategy generally works. Those libcall functions doesn't really matter if you have a linker that can do dead-stripping but can help other linkers.

I wonder if the better strategy for libcall symbol is to patch up during LTO time, rather than encode them as `used` in bitcode symtab, then you can decide based on LTO configuration. Also when there is a version mismatch between compiler and LTO, it is more important to know what LTO is considered a libcall function as it is doing the code generation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154364/new/

https://reviews.llvm.org/D154364



More information about the llvm-commits mailing list