summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src
diff options
context:
space:
mode:
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>2017-07-13 10:38:11 +0000
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>2017-07-13 10:38:11 +0000
commit266ddafc6858c38e2009e1d88cf99e335ac0c714 (patch)
treef3ac69d4d169b08366644c00cee217c1400a10a7 /openmp/runtime/src
parent98394f8393f42d24788a7abe58995e88d3904624 (diff)
downloadbcm5719-llvm-266ddafc6858c38e2009e1d88cf99e335ac0c714.tar.gz
bcm5719-llvm-266ddafc6858c38e2009e1d88cf99e335ac0c714.zip
[GOMP] Fix (un)tied tasks with the GCC
The first bit is actually the "untied" flag. That is why the condition was wrong and has to be inverted to set the flag correctly. Found and initial patch by Simon Convent! llvm-svn: 307899
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/kmp_gsupport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/openmp/runtime/src/kmp_gsupport.cpp b/openmp/runtime/src/kmp_gsupport.cpp
index 2eca4975bb2..be9d0a21b7f 100644
--- a/openmp/runtime/src/kmp_gsupport.cpp
+++ b/openmp/runtime/src/kmp_gsupport.cpp
@@ -847,8 +847,8 @@ void xexpand(KMP_API_NAME_GOMP_TASK)(void (*func)(void *), void *data,
KA_TRACE(20, ("GOMP_task: T#%d\n", gtid));
- // The low-order bit is the "tied" flag
- if (gomp_flags & 1) {
+ // The low-order bit is the "untied" flag
+ if (!(gomp_flags & 1)) {
input_flags->tiedness = 1;
}
// The second low-order bit is the "final" flag
OpenPOWER on IntegriCloud