This is an archive of the discontinued LLVM Phabricator instance.

disable load widening in ThreadSanitizer mode
ClosedPublic

Authored by kcc on Feb 11 2013, 5:12 AM.

Details

Summary

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

Diff Detail

Event Timeline

nlewycky accepted this revision.Feb 12 2013, 12:09 AM
Eugene.Zelenko closed this revision.Oct 5 2016, 4:17 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL175034.