OSDN Git Service

[NVPTX] Fix debugging information being added to NVPTX target if remarks are enabled
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 6 Jan 2021 15:20:34 +0000 (10:20 -0500)
committerHuber, Joseph <huberjn@ornl.gov>
Wed, 6 Jan 2021 18:43:22 +0000 (13:43 -0500)
commit1ca5e68aa07e30567c6aa2409c5641e0a2d77355
treefee002a346b7b2621113603c4f930871b3adec67
parent90347ab96f25c913c832b86c69efa525db7bd039
[NVPTX] Fix debugging information being added to NVPTX target if remarks are enabled
Summary:
Optimized debugging is not supported by ptxas. Debugging information is degraded to line information only if optimizations are enabled, but debugging information would be added back in by the driver if remarks were enabled. This solves https://bugs.llvm.org/show_bug.cgi?id=48153.

Reviewers: jdoerfert tra jholewinski serge-sans-paille

Differential Revision: https://reviews.llvm.org/D94123
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/Cuda.cpp