[PATCH] D94123: [NVPTX] Strip debugging symbols for optimized NVPTX targets.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 14:50:25 PST 2021


tra added a comment.

There's  `--cuda-noopt-device-debug` option specifically to allow compiling GPU code with full debug info. Clang will generate optimized PTX, but ptxas optimizations will be disabled.

Without that flag clang automatically downgrades debug info generation to lineinfo only. I think `-fsave-optimization-record` should do the same.
Adding a pass to strip debug info may not be the best place to deal with the issue. I think not enabling full debug info would be a better choice.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94123



More information about the llvm-commits mailing list