[PATCH] tsan: do not instrument not captured values

Dmitry Vyukov dvyukov at google.com
Tue Jan 27 03:03:17 PST 2015


Chandler, I've tested the approach where we ignore only completely non-captured variables, and it seems to give most of the benefit.
Number of __tsan_(read|write|unaligned) calls in webrtc modules_unittest was 240592; with my original patch -- 149078; with only PointerMayBeCaptured -- 149624.

Looks much simpler now as well. And also I don't need to figure out how to reuse DominatorTree from a previous pass :)

PTAL


http://reviews.llvm.org/D7069

Files:
  lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  test/Instrumentation/ThreadSanitizer/capture.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7069.18805.patch
Type: text/x-patch
Size: 4443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150127/ca97bc5d/attachment.bin>


More information about the llvm-commits mailing list