summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorXin Tong <trent.xin.tong@gmail.com>2017-05-21 00:37:55 +0000
committerXin Tong <trent.xin.tong@gmail.com>2017-05-21 00:37:55 +0000
commit9fbfeefadfad06ee55a1e4012a6a3fb3893936d2 (patch)
treea7fc16eba5dfaeb8deb3ed51cfa3fe86e2345e98 /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parent75af3af95780e1c379409bf56c516a272c4fa961 (diff)
downloadbcm5719-llvm-9fbfeefadfad06ee55a1e4012a6a3fb3893936d2.tar.gz
bcm5719-llvm-9fbfeefadfad06ee55a1e4012a6a3fb3893936d2.zip
Revert "Add pthread_self function prototype and make it speculatable."
This reverts commit 143d7445b5dfa2f6d6c45bdbe0433d9fc531be21. Build breaking llvm-svn: 303496
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/BuildLibCalls.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
index cf345325254..ebde1f9a17d 100644
--- a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
@@ -38,7 +38,6 @@ STATISTIC(NumNoCapture, "Number of arguments inferred as nocapture");
STATISTIC(NumReadOnlyArg, "Number of arguments inferred as readonly");
STATISTIC(NumNoAlias, "Number of function returns inferred as noalias");
STATISTIC(NumNonNull, "Number of function returns inferred as nonnull returns");
-STATISTIC(NumSpeculatable, "Number of functions inferred as speculatable");
static bool setDoesNotAccessMemory(Function &F) {
if (F.doesNotAccessMemory())
@@ -72,14 +71,6 @@ static bool setDoesNotThrow(Function &F) {
return true;
}
-static bool setSpeculatable(Function &F) {
- if (F.isSpeculatable())
- return false;
- F.setSpeculatable();
- ++NumSpeculatable;
- return true;
-}
-
static bool setRetDoesNotAlias(Function &F) {
if (F.hasAttribute(AttributeList::ReturnIndex, Attribute::NoAlias))
return false;
@@ -539,9 +530,6 @@ bool llvm::inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI) {
Changed |= setOnlyReadsMemory(F, 0);
Changed |= setOnlyReadsMemory(F, 1);
return Changed;
- case LibFunc_pthread_self:
- Changed |= setSpeculatable(F);
- return Changed;
case LibFunc_vfscanf:
Changed |= setDoesNotThrow(F);
Changed |= setDoesNotCapture(F, 0);
OpenPOWER on IntegriCloud