]> granicus.if.org Git - clang/commit
[OPENMP]Improve use of the global tid parameter.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 17 Oct 2019 17:12:03 +0000 (17:12 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 17 Oct 2019 17:12:03 +0000 (17:12 +0000)
commit68798ad421f79deef8f9be75dd3c6ae3a25f412f
tree86c128b67faa84686b2b74ecf724f7a6c70f6201
parent3b8d539899d6651504edfbaaa2ea68eb9d7aa6ac
[OPENMP]Improve use of the global tid parameter.

If we can determined, that the global tid parameter can be used in the
function, better to use it rather than calling __kmpc_global_thread_num
function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375134 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/openmp_win_codegen.cpp
test/OpenMP/parallel_for_codegen.cpp