[PATCH] D57882: Optimize performance of Thread sanitizer memory access functions

Yuri Per via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 7 03:15:39 PST 2019


yuri created this revision.
yuri added a reviewer: dvyukov.
yuri added a project: Sanitizers.
Herald added subscribers: Sanitizers, llvm-commits, jfb, kubamracek.
Herald added a project: LLVM.

- 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


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D57882

Files:
  lib/tsan/rtl/tsan_interface_atomic.cc
  lib/tsan/rtl/tsan_rtl.cc
  lib/tsan/rtl/tsan_update_shadow_word_inl.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57882.185729.patch
Type: text/x-patch
Size: 4352 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190207/90ebbbd2/attachment.bin>


More information about the llvm-commits mailing list