[PATCH] D138560: [lld][LTO] Add assembly output to LTO save-temps

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 12 07:11:28 PST 2022


Pierre-vh added a comment.

I checked -lto-emit-asm and it doesn't look like it does what I need. Ideally we want to get the .s file without needing to run the command twice, we'd expect -save-temps to always give us a .s file and that `-fgpu-rdc` wouldn't affect it
I think landing this is the simplest to make the behavior of using LTO/-fgpu-rdc consistent with non-LTO/no -fgpu-rdc builds. The next best thing would be a Driver change but I think it'll end up adding more complexity.

Do you still think this isn't the right way to go?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138560



More information about the llvm-commits mailing list