[OPENMP][NVPTX]Simplify handling of thread limit, NFC.
Patch improves performance of the full runtime mode by moving
threads limit counter to the shared memory. It also allows to save
Reviewers: grokos, kkwli0, gtbercea
Subscribers: guansong, jdoerfert, openmp-commits, caomhin
Differential Revision: https://reviews.llvm.org/D61801
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@360584 91177308-0d34-0410-b5e6-96231b3b80d8
6 files changed