[OpenMP][Stats] Fix stats gathering for distribute and team clause
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 3 Apr 2019 18:53:26 +0000 (18:53 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 3 Apr 2019 18:53:26 +0000 (18:53 +0000)
commitd2b53cad18523034f4225bc4ea62867093c134db
tree6710bab60476a751a783c18885b3f2b8e2bdbb78
parent3d90e7e8db2c522c87f0fbfcdcb9aeed62680922
[OpenMP][Stats] Fix stats gathering for distribute and team clause

The distribute clause needs an explicit push of a timer. The teams
clause needs a timer added and also, similarly to parallel, exchanged
with the serial timer when encountered so that serial regions are
counted properly.

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

llvm-svn: 357621
openmp/runtime/src/kmp_csupport.cpp
openmp/runtime/src/kmp_dispatch.cpp
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/kmp_sched.cpp
openmp/runtime/src/kmp_stats.cpp
openmp/runtime/src/kmp_stats.h