forked from OSchip/llvm-project
[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:
parent
98394f8393
commit
266ddafc68
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue