commit | cff60c1409e36079b4bc6ecbda84565143bf00af | [log] [tgz] |
---|---|---|
author | Kostya Serebryany <kcc@google.com> | Tue Apr 10 22:29:17 2012 +0000 |
committer | Kostya Serebryany <kcc@google.com> | Tue Apr 10 22:29:17 2012 +0000 |
tree | 37ee207e2155b163af6bc0da9fa27ebccbe92a1d | |
parent | 3aef2ff514c879f98571fb91ddbe1142466a6266 [diff] |
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154444 91177308-0d34-0410-b5e6-96231b3b80d8