[llvm] r301288 - [SimplifyLibCalls] Remove a cl::opt that's been `true` for a long time.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 20:48:48 PDT 2017


Author: davide
Date: Mon Apr 24 22:48:47 2017
New Revision: 301288

URL: http://llvm.org/viewvc/llvm-project?rev=301288&view=rev
Log:
[SimplifyLibCalls] Remove a cl::opt that's been `true` for a long time.

Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp?rev=301288&r1=301287&r2=301288&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp Mon Apr 24 22:48:47 2017
@@ -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::optimizeErrorR
 }
 
 static bool isReportingError(Function *Callee, CallInst *CI, int StreamArg) {
-  if (!ColdErrorCalls || !Callee || !Callee->isDeclaration())
+  if (!Callee || !Callee->isDeclaration())
     return false;
 
   if (StreamArg < 0)




More information about the llvm-commits mailing list