summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-04-25 03:48:47 +0000
committerDavide Italiano <davide@freebsd.org>2017-04-25 03:48:47 +0000
commit5b65f12bfa5bbcc657110edb6cffd8f5282edd88 (patch)
tree0a904294c052de08bf7e24a3e925f30219dcfa43 /llvm/lib/Transforms
parent1a7f6afe7d8121b737ec76cda8fc6d52705a2b81 (diff)
downloadbcm5719-llvm-5b65f12bfa5bbcc657110edb6cffd8f5282edd88.tar.gz
bcm5719-llvm-5b65f12bfa5bbcc657110edb6cffd8f5282edd88.zip
[SimplifyLibCalls] Remove a cl::opt that's been `true` for a long time.
llvm-svn: 301288
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index aa71e3669ea..956bd08d852 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -37,10 +37,6 @@ using namespace llvm;
using namespace PatternMatch;
static cl::opt<bool>
- ColdErrorCalls("error-reporting-is-cold", cl::init(true), cl::Hidden,
- cl::desc("Treat error-reporting calls as cold"));
-
-static cl::opt<bool>
EnableUnsafeFPShrink("enable-double-float-shrink", cl::Hidden,
cl::init(false),
cl::desc("Enable unsafe double to float "
@@ -1632,7 +1628,7 @@ Value *LibCallSimplifier::optimizeErrorReporting(CallInst *CI, IRBuilder<> &B,
}
static bool isReportingError(Function *Callee, CallInst *CI, int StreamArg) {
- if (!ColdErrorCalls || !Callee || !Callee->isDeclaration())
+ if (!Callee || !Callee->isDeclaration())
return false;
if (StreamArg < 0)
OpenPOWER on IntegriCloud