]> granicus.if.org Git - clang/commit
[CUDA] Disable PGO and coverage instrumentation in NVPTX.
authorArtem Belevich <tra@google.com>
Wed, 24 Jan 2018 17:41:02 +0000 (17:41 +0000)
committerArtem Belevich <tra@google.com>
Wed, 24 Jan 2018 17:41:02 +0000 (17:41 +0000)
commit7e980e2e8ee6c9c9b2e7c0447f0b0d1a709baeb1
tree7c739f0a2a1b73c1b286200c49be6383df0286c1
parent461567f9415f0d6201081df0293ceadb8ded171b
[CUDA] Disable PGO and coverage instrumentation in NVPTX.

NVPTX does not have runtime support necessary for profiling to work
and even call arc collection is prohibitively expensive. Furthermore,
there's no easy way to collect the samples. NVPTX also does not
support global constructors that clang generates if sample/arc collection
is enabled.

Differential Revision: https://reviews.llvm.org/D42452

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323345 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/cuda-no-pgo-or-coverage.cu [new file with mode: 0644]