From: Davide Italiano Date: Tue, 25 Apr 2017 03:48:47 +0000 (+0000) Subject: [SimplifyLibCalls] Remove a cl::opt that's been `true` for a long time. X-Git-Tag: llvmorg-5.0.0-rc1~6764 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b65f12bfa5bbcc657110edb6cffd8f5282edd88;p=platform%2Fupstream%2Fllvm.git [SimplifyLibCalls] Remove a cl::opt that's been `true` for a long time. llvm-svn: 301288 --- diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp index aa71e36..956bd08 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 - ColdErrorCalls("error-reporting-is-cold", cl::init(true), cl::Hidden, - cl::desc("Treat error-reporting calls as cold")); - -static cl::opt 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)