[OpenMP] libomp: Fix handling of barrier pattern environment variables
author@t-msn <misono.tomohiro@fujitsu.com>
Mon, 8 Nov 2021 12:01:19 +0000 (15:01 +0300)
committerAndreyChurbanov <andrey.churbanov@intel.com>
Mon, 8 Nov 2021 12:01:26 +0000 (15:01 +0300)
commit0808d956c43e10646bc3f79ef5f9ccf12fc829f3
tree51cf9c9635d8bd33ea1f89f110bef200414ea166
parentddd11b9a4b0709b3835fa8fad2beed00a60df631
[OpenMP] libomp: Fix handling of barrier pattern environment variables

It is better to set all barrier patterns to use "dist" when at least
one environment variable specifies "dist". Otherwise if only one
environment is set to "dist" and others left blank inadvertently,
it would result in mixing dist barrier with default hyper barrier
pattern.

Differential Revision: https://reviews.llvm.org/D112597
openmp/runtime/src/kmp_settings.cpp