]> granicus.if.org Git - llvm/commit
Add pthread_self function prototype and make it speculatable.
authorXin Tong <trent.xin.tong@gmail.com>
Sat, 20 May 2017 22:40:25 +0000 (22:40 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Sat, 20 May 2017 22:40:25 +0000 (22:40 +0000)
commit143d7445b5dfa2f6d6c45bdbe0433d9fc531be21
tree4b651d8a189a25d257ebf33041b3bd7a951fa52b
parent445f6b560d80bd93e31e4c223bf5a1f4d54a0d39
Add pthread_self function prototype and make it speculatable.

Summary: This allows pthread_self to be pulled out of a loop by LICM.

Reviewers: hfinkel, arsenm, davide

Reviewed By: davide

Subscribers: davide, wdng, llvm-commits

Differential Revision: https://reviews.llvm.org/D32782

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303495 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetLibraryInfo.def
lib/Analysis/TargetLibraryInfo.cpp
lib/Transforms/Utils/BuildLibCalls.cpp
test/Transforms/LICM/pthread.ll [new file with mode: 0644]
unittests/Analysis/TargetLibraryInfoTest.cpp