]> granicus.if.org Git - llvm/commit
Merging r295215:
authorHans Wennborg <hans@hanshq.net>
Thu, 16 Feb 2017 21:15:37 +0000 (21:15 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 16 Feb 2017 21:15:37 +0000 (21:15 +0000)
commit50919cc9df11b3e5c32c0a879b1892f80e8ebc7e
treef2ba3f08e60b860341fa4a2223f33965df1b39e0
parent00db617958168f59357bc1a75205ca65e20f9ec7
Merging r295215:
------------------------------------------------------------------------
r295215 | arnolds | 2017-02-15 10:57:06 -0800 (Wed, 15 Feb 2017) | 11 lines

ThreadSanitizer: don't track swifterror memory addresses

They are register promoted by ISel and so it makes no sense to treat them as
memory.

Inserting calls to the thread sanitizer would also generate invalid IR.

You would hit:

"swifterror value can only be loaded and stored from, or as a swifterror
argument!"
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@295376 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
test/Instrumentation/ThreadSanitizer/tsan_basic.ll