diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-02-07 12:43:09 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-02-07 12:43:09 +0000 |
| commit | fddaf1f369a12925456508eb9157691abe65d8ab (patch) | |
| tree | f334b7ed547c21033182ad0cba063ed7248a96b5 /llvm/tools/llvm-diff/DifferenceEngine.cpp | |
| parent | ccebc7e38c8045a39284c8582f483ffba0069810 (diff) | |
| download | bcm5719-llvm-fddaf1f369a12925456508eb9157691abe65d8ab.tar.gz bcm5719-llvm-fddaf1f369a12925456508eb9157691abe65d8ab.zip | |
tsan: Optimize performance of Thread sanitizer memory access functions
- Manually unwind code in MemoryAccessImpl1() because clang do not optimize it
- Check for .rodata section only in read operations
- Place LIKELY/UNLIKELY on fast paths
This speeds up synthetic memory access benchmarks by 10-20%.
[dvyukov: fixed up consts in check_analyze.sh]
Author: yuri (Yuri Per)
Reviewed in: https://reviews.llvm.org/D57882
Context: https://reviews.llvm.org/D54889
llvm-svn: 353401
Diffstat (limited to 'llvm/tools/llvm-diff/DifferenceEngine.cpp')
0 files changed, 0 insertions, 0 deletions

