[llvm-commits] [llvm] r48319 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp

Evan Cheng evan.cheng at apple.com
Wed Mar 12 19:41:35 PDT 2008


Author: evancheng
Date: Wed Mar 12 21:41:34 2008
New Revision: 48319

URL: http://llvm.org/viewvc/llvm-project?rev=48319&view=rev
Log:
Remove unused options.

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

Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=48319&r1=48318&r2=48319&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Wed Mar 12 21:41:34 2008
@@ -53,14 +53,6 @@
                 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::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 @@
   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();





More information about the llvm-commits mailing list