Remove now unneeded command line flag that enables 'optimize compares.'
authorBill Wendling <isanbard@gmail.com>
Fri, 27 Aug 2010 20:39:09 +0000 (20:39 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 27 Aug 2010 20:39:09 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112287 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PeepholeOptimizer.cpp

index 96a2b6edf9952726640416786f696182f1f50b2a..ea14d276d5b1769bd12c90ac277408c29cf47589 100644 (file)
@@ -50,12 +50,7 @@ static cl::opt<bool>
 Aggressive("aggressive-ext-opt", cl::Hidden,
            cl::desc("Aggressive extension optimization"));
 
-STATISTIC(NumReuse, "Number of extension results reused");
-
-// Optimize Comparisons
-static cl::opt<bool>
-EnableOptCmps("enable-optimize-cmps", cl::init(true), cl::Hidden);
-
+STATISTIC(NumReuse,      "Number of extension results reused");
 STATISTIC(NumEliminated, "Number of compares eliminated");
 
 namespace {
@@ -238,8 +233,6 @@ OptimizeExtInstr(MachineInstr *MI, MachineBasicBlock *MBB,
 /// the flag from the previous instruction.
 bool PeepholeOptimizer::OptimizeCmpInstr(MachineInstr *MI,
                                          MachineBasicBlock *MBB) {
-  if (!EnableOptCmps) return false;
-
   // If this instruction is a comparison against zero and isn't comparing a
   // physical register, we can try to optimize it.
   unsigned SrcReg;