]> granicus.if.org Git - clang/commit
[OPENMP]Fix PR40536: Do not emit __kmpc_push_target_tripcount if not
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 30 Jan 2019 20:49:52 +0000 (20:49 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 30 Jan 2019 20:49:52 +0000 (20:49 +0000)
commit93270fb6cbf0e1d92a6fdea5b032e6950380d8b6
tree0939d6624c620ba3c9a82b4433e2e82fc9a1097a
parentc18e7e9007970a3105617f03bc9d1de89fa1a3e1
[OPENMP]Fix PR40536: Do not emit __kmpc_push_target_tripcount if not
required.

Function __kmpc_push_target_tripcount should be emitted only if the
offloading entry is going to be emitted (for use in tgt_target...
functions). Otherwise, it should not be emitted.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352669 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/target_teams_distribute_parallel_for_codegen.cpp
test/OpenMP/target_teams_distribute_parallel_for_if_codegen.cpp
test/OpenMP/target_teams_distribute_parallel_for_simd_if_codegen.cpp