aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAndreyChurbanov <andrey.churbanov@intel.com>2021-03-09 18:30:08 +0300
committerAndreyChurbanov <andrey.churbanov@intel.com>2021-03-09 18:30:08 +0300
commitaaf16b80dd4cdeb84caae8f3785ce7e4cc7a0f69 (patch)
tree8b67efeb823765e6fe0a6ff27efeb8439f947c01 /clang/lib/Frontend/CompilerInvocation.cpp
parentb04fbc191325a0fc07eb6882f5ab85123b6dc165 (diff)
downloadllvm-aaf16b80dd4cdeb84caae8f3785ce7e4cc7a0f69.zip
llvm-aaf16b80dd4cdeb84caae8f3785ce7e4cc7a0f69.tar.gz
llvm-aaf16b80dd4cdeb84caae8f3785ce7e4cc7a0f69.tar.bz2
[OpenMP] libomp: eliminate pause from atomic CAS loops
For clang this change is NFC cleanup, because clang never calls atomic functions from runtime library. Basically, pause is good in spin-loops waiting for something. Atomic CAS loops do not wait for anything, each CAS failure means some other thread progressed. Performance experiments show that the pause only causes unnecessary slowdown on CPUs with slow pause instruction, no difference on CPUs with fast pause instruction, removal of the pause gives lesser binary size which is good. Differential Revision: https://reviews.llvm.org/D97079
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions