diff options
| author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-06-06 16:27:38 +0000 | 
|---|---|---|
| committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-06-06 16:27:38 +0000 | 
| commit | cdf34921914fdffb5575f4820b8754b60b38a980 (patch) | |
| tree | b8f107ed78c4aa7ff9e97b357ee66de244dc52ac /clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.cpp | |
| parent | 2e26d9faac0826d9ff9b7a5f2b85ce6c34e24e67 (diff) | |
| download | bcm5719-llvm-cdf34921914fdffb5575f4820b8754b60b38a980.tar.gz bcm5719-llvm-cdf34921914fdffb5575f4820b8754b60b38a980.zip | |
[tsan] On OS X, optimize main thread’s ThreadState accesses
This is a very simple optimization that gets about 10% speedup for certain programs. We’re currently storing the pointer to the main thread’s ThreadState, but we can store the state directly in a static variable, which avoid the load acquire.
Differential Revision: http://reviews.llvm.org/D20910
llvm-svn: 271906
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.cpp')
0 files changed, 0 insertions, 0 deletions

