diff options
author | Michael Liao <michael.hliao@gmail.com> | 2020-08-04 13:56:36 -0400 |
---|---|---|
committer | Michael Liao <michael.hliao@gmail.com> | 2020-08-10 11:01:46 -0400 |
commit | c7b683c126b849dab5c81e7deecfc1e61f8563a0 (patch) | |
tree | bd2e0b8154c1c97c32140158bf5da7d6453f5289 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 7866442b3f5d395e7f92a5d6b6ed0df3e4ba429b (diff) | |
download | llvm-c7b683c126b849dab5c81e7deecfc1e61f8563a0.zip llvm-c7b683c126b849dab5c81e7deecfc1e61f8563a0.tar.gz llvm-c7b683c126b849dab5c81e7deecfc1e61f8563a0.tar.bz2 |
[PGO][CUDA][HIP] Skip generating profile on the device stub and wrong-side functions.
- Skip generating profile data on `__global__` function in the host
compilation. It's a host-side stub function only and don't have
profile instrumentation generated on the real function body. The extra
profile data results in the malformed instrumentation profile data.
- Skip generating region mapping on functions in the wrong-side, i.e.,
+ For the device compilation, skip host-only functions; and,
+ For the host compilation, skip device-only functions (including
`__global__` functions.)
- As the device-side profiling is not ready yet, only host-side profile
code generation is checked.
Differential Revision: https://reviews.llvm.org/D85276
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions