summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-13 06:38:28 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-13 06:38:28 +0000
commit21449c76bc64647aa60f65dc4ea8e936f0a8ef71 (patch)
tree30c98a1a209abbf5ef948f19ad1bdb3c3e8fc7ec /llvm/lib/CodeGen
parent5c26bde55e762f599a97141c9bc615e77905c088 (diff)
downloadbcm5719-llvm-21449c76bc64647aa60f65dc4ea8e936f0a8ef71.tar.gz
bcm5719-llvm-21449c76bc64647aa60f65dc4ea8e936f0a8ef71.zip
Remove an unused command line option.
llvm-svn: 48334
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index 977a8ff54ad..73803279110 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -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(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 {
const TargetInstrInfo *TII;
@@ -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);
OpenPOWER on IntegriCloud