[llvm-commits] [llvm] r48334 - /llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp

Evan Cheng evan.cheng at apple.com
Wed Mar 12 23:38:28 PDT 2008


Author: evancheng
Date: Thu Mar 13 01:38:28 2008
New Revision: 48334

URL: http://llvm.org/viewvc/llvm-project?rev=48334&view=rev
Log:
Remove an unused command line option.

Modified:
    llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp

Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=48334&r1=48333&r2=48334&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Thu Mar 13 01:38:28 2008
@@ -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"
@@ -50,11 +49,6 @@
 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 {
     const TargetInstrInfo *TII;
@@ -171,9 +165,6 @@
     }
   }
 
-  if (SinkLimit != -1 && Num3AddrSunk == (unsigned)SinkLimit)
-    return false;
-
   // Update kill and LV information.
   KillMO->setIsKill(false);
   KillMO = MI->findRegisterUseOperand(SavedReg, false, TRI);





More information about the llvm-commits mailing list