aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2021-12-09 16:10:46 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2021-12-09 16:30:29 -0500
commitbc9c4d7216a5bcdeec8543834fe1451db2c46e5c (patch)
tree31bb3b4f17c58781eebc971bef31722428a9994f /clang/lib/Frontend/CompilerInvocation.cpp
parentad3bb7c7da7b9e66cb98629d0f579546c8ead48f (diff)
downloadllvm-bc9c4d7216a5bcdeec8543834fe1451db2c46e5c.zip
llvm-bc9c4d7216a5bcdeec8543834fe1451db2c46e5c.tar.gz
llvm-bc9c4d7216a5bcdeec8543834fe1451db2c46e5c.tar.bz2
[OpenMP][FIX] Pass the num_threads value directly to parallel_51
The problem with the old scheme is that we would need to keep track of the "next region" and reset the num_threads value after it. The new RT doesn't do it and an assertion is triggered. The old RT doesn't do it either, I haven't tested it but I assume a num_threads clause might impact multiple parallel regions "accidentally". Further, in SPMD mode num_threads was simply ignored, for some reason beyond me. In any case, parallel_51 is designed to take the clause value directly, so let's do that instead. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D113623
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions