[OpenMP] libomp: fix ittnotify stack stitching for teams construct
authorAndreyChurbanov <andrey.churbanov@intel.com>
Thu, 25 Feb 2021 21:23:24 +0000 (00:23 +0300)
committerAndreyChurbanov <andrey.churbanov@intel.com>
Thu, 25 Feb 2021 21:23:24 +0000 (00:23 +0300)
commit493210117785c348dcbbf7fc3615020ee81d2c9d
treeecdc4f68908da29d850cb4442b60957626631d6d
parent6d52c4819294dafb2c072011d72bb523092248a2
[OpenMP] libomp: fix ittnotify stack stitching for teams construct

Stitching id could be overridden causing reference of destroyed object
when number of teams is 1. The patch separates stitching id store
location for teams and parallel nested in teams.

Differential Revision: https://reviews.llvm.org/D96562
openmp/runtime/src/kmp_runtime.cpp