Dmitry Vyukov
a878e74351
tsan: instrument atomic nand operation
...
llvm-svn: 168684
2012-11-27 08:09:25 +00:00
Dmitry Vyukov
12b5cb9a0a
[tsan] add fail order to compare_exchange
...
llvm-svn: 168586
2012-11-26 11:36:19 +00:00
Dmitry Vyukov
0044e386e9
tsan: switch to new memory_order constants (ABI compatible)
...
llvm-svn: 167615
2012-11-09 14:12:16 +00:00
Dmitry Vyukov
92b9e1dbfd
tsan: instrument all atomics (including fetch_add, exchange, cas, etc)
...
llvm-svn: 167612
2012-11-09 12:55:36 +00:00
Dmitry Vyukov
84d75cdffd
tsan: update the test for new atomic enums
...
llvm-svn: 165109
2012-10-03 13:19:20 +00:00
Dmitry Vyukov
68845093dd
tsan: update the test for new atomic enums
...
llvm-svn: 165108
2012-10-03 13:13:54 +00:00
Kostya Serebryany
a1259778b4
[tsan] Atomic support for ThreadSanitizer, patch by Dmitry Vyukov
...
llvm-svn: 155698
2012-04-27 07:31:53 +00:00
Kostya Serebryany
5ba61ac651
[tsan] two more compile-time optimizations:
...
- don't isntrument reads from constant globals.
Saves ~1.5% of instrumented instructions on CPU2006
(counting static instructions, not their execution).
- don't insrument reads from vtable (which is a global constant too).
Saves ~5%.
I did not measure the run-time impact of this,
but it is certainly non-negative.
llvm-svn: 154444
2012-04-10 22:29:17 +00:00
Kostya Serebryany
bf2de80be6
[tsan] compile-time instrumentation: do not instrument a read if
...
a write to the same temp follows in the same BB.
Also add stats printing.
On Spec CPU2006 this optimization saves roughly 4% of instrumented reads
(which is 3% of all instrumented accesses):
Writes : 161216
Reads : 446458
Reads-before-write: 18295
llvm-svn: 154418
2012-04-10 18:18:56 +00:00
Kostya Serebryany
6f8a776041
[tsan] treat vtable pointer updates in a special way (requires tbaa); fix a bug (forgot to return true after instrumenting); make sure the tsan tests are run
...
llvm-svn: 153448
2012-03-26 17:35:03 +00:00
Eli Bendersky
924f9a671d
Replace all instances of dg.exp file with lit.local.cfg, since all tests are run with LIT now and now Dejagnu. dg.exp is no longer needed.
...
Patch reviewed by Daniel Dunbar. It will be followed by additional cleanup patches.
llvm-svn: 150664
2012-02-16 06:28:33 +00:00
Kostya Serebryany
e2a0e4163a
ThreadSanitizer, a race detector. First LLVM commit.
...
Clang patch (flags) will follow shortly.
The run-time library will also follow, but not immediately.
llvm-svn: 150423
2012-02-13 22:50:51 +00:00