Remove an unused command line option.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 13 Mar 2008 06:38:28 +0000 (06:38 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 13 Mar 2008 06:38:28 +0000 (06:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48334 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TwoAddressInstructionPass.cpp

index 977a8ff54ad7b9a72c2d3ab4b058966d2e59edae..73803279110730ff4e861ecb8cab449ed14f84bf 100644 (file)
@@ -37,7 +37,6 @@
 #include "llvm/Target/TargetRegisterInfo.h"
 #include "llvm/Target/TargetInstrInfo.h"
 #include "llvm/Target/TargetMachine.h"
-#include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/ADT/Statistic.h"
@@ -49,11 +48,6 @@ STATISTIC(NumCommuted        , "Number of instructions commuted to coalesce");
 STATISTIC(NumConvertedTo3Addr, "Number of instructions promoted to 3-address");
 STATISTIC(Num3AddrSunk,        "Number of 3-address instructions sunk");
 
-namespace {
-  static cl::opt<int>
-  SinkLimit("two-addr-sink-limit", cl::init(-1), cl::Hidden);
-}
-
 namespace {
   struct VISIBILITY_HIDDEN TwoAddressInstructionPass
    : public MachineFunctionPass {
@@ -171,9 +165,6 @@ bool TwoAddressInstructionPass::Sink3AddrInstruction(MachineBasicBlock *MBB,
     }
   }
 
-  if (SinkLimit != -1 && Num3AddrSunk == (unsigned)SinkLimit)
-    return false;
-
   // Update kill and LV information.
   KillMO->setIsKill(false);
   KillMO = MI->findRegisterUseOperand(SavedReg, false, TRI);