[PATCH] D117048: [OpenMP] Link the bitcode library late for device LTO

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 11 16:04:51 PST 2022


jhuber6 added a comment.

In D117048#3235763 <https://reviews.llvm.org/D117048#3235763>, @JonChesterfield wrote:

> Do we have a hook where we could link it at, uh, link time on nvtptx without LTO? Amdgpu had a llvm-link already there. Always bothered me a little that we link a copy per TU then hope the optimiser sorts it out nicely.

I think it would be difficult, we could compile the library stand-alone and link it normally in the linker wrapper, but the performance would probably be bad. We could potentially only link everything once, but when we compile we don't really know how many files will need it right? It would definitely improve compile times if we could somehow do it though.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117048



More information about the cfe-commits mailing list