load-widening is unfriendly to ThreadSanitizer, so
we disable it if ThreadSafety attribute is set.
This is similar to what we do with AddressSanitizer,
although with ASAN we do allow some kinds of load widening.
An llvm bitcode test is included.
A C++ test is at projects/compiler-rt/lib/tsan/lit_tests/tsan-vs-gvn.cc
Details
Details
Diff Detail
Diff Detail