summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-13 02:41:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-13 02:41:34 +0000
commit4f610c0de1b325e01c4b6b0cb3cd876dcacd5747 (patch)
tree83bb0f083e9785b77eb77d86f71630bbc7e8c8cf /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
parent565df95a368629e768063cfb3b64bcf66ffe4e95 (diff)
downloadbcm5719-llvm-4f610c0de1b325e01c4b6b0cb3cd876dcacd5747.tar.gz
bcm5719-llvm-4f610c0de1b325e01c4b6b0cb3cd876dcacd5747.zip
Remove unused options.
llvm-svn: 48319
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 65c8a5b99b1..92a4ebeb849 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -53,14 +53,6 @@ namespace {
cl::desc("Use new coalescer heuristic"),
cl::init(false));
- static cl::opt<bool>
- CommuteDef("coalescer-commute-instrs",
- cl::init(true), cl::Hidden);
-
- static cl::opt<int>
- CommuteLimit("commute-limit",
- cl::init(-1), cl::Hidden);
-
RegisterPass<SimpleRegisterCoalescing>
X("simple-register-coalescing", "Simple Register Coalescing");
@@ -247,8 +239,6 @@ bool SimpleRegisterCoalescing::HasOtherReachingDefs(LiveInterval &IntA,
bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(LiveInterval &IntA,
LiveInterval &IntB,
MachineInstr *CopyMI) {
- if (!CommuteDef) return false;
-
unsigned CopyIdx = li_->getDefIndex(li_->getInstructionIndex(CopyMI));
// FIXME: For now, only eliminate the copy by commuting its def when the
@@ -293,9 +283,6 @@ bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(LiveInterval &IntA,
if (HasOtherReachingDefs(IntA, IntB, AValNo, BValNo))
return false;
- if (CommuteLimit >= 0 && numCommutes >= (unsigned)CommuteLimit)
- return false;
-
// At this point we have decided that it is legal to do this
// transformation. Start by commuting the instruction.
MachineBasicBlock *MBB = DefMI->getParent();
OpenPOWER on IntegriCloud