Don't speculate loads under ThreadSanitizer
authorKostya Serebryany <kcc@google.com>
Thu, 21 Nov 2013 07:29:28 +0000 (07:29 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 21 Nov 2013 07:29:28 +0000 (07:29 +0000)
commit42a9da35b839b3a2bb0c891ecc7e138da016f1dd
tree3f6d9220650abb6067aa54caf06602a750fe1aa8
parent072ebe59e2b05af9e67a691163273b9ab2b96b3b
Don't speculate loads under ThreadSanitizer

Summary:
Don't speculate loads under ThreadSanitizer.
This fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=40
Also discussed here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-November/067929.html

Reviewers: chandlerc

Reviewed By: chandlerc

CC: llvm-commits, dvyukov
Differential Revision: http://llvm-reviews.chandlerc.com/D2227

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195324 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
test/Transforms/SimplifyCFG/no_speculative_loads_with_tsan.ll [new file with mode: 0644]