[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
This commit is contained in:
Jonas Hahnfeld 2017-07-13 10:38:11 +00:00
parent 98394f8393
commit 266ddafc68
1 changed files with 2 additions and 2 deletions

View File

@ -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