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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits