diff options
| author | Bill Wendling <isanbard@gmail.com> | 2010-08-27 20:39:09 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2010-08-27 20:39:09 +0000 |
| commit | 6628431a91889adaae45e68be8696aeef806bebe (patch) | |
| tree | 2bd77592a9e287b13d83f6901122e39fce930d3b /llvm | |
| parent | 99d4cb861b5ce31d08f59c2f3c795e23648eba66 (diff) | |
| download | bcm5719-llvm-6628431a91889adaae45e68be8696aeef806bebe.tar.gz bcm5719-llvm-6628431a91889adaae45e68be8696aeef806bebe.zip | |
Remove now unneeded command line flag that enables 'optimize compares.'
llvm-svn: 112287
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/PeepholeOptimizer.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/PeepholeOptimizer.cpp b/llvm/lib/CodeGen/PeepholeOptimizer.cpp index 96a2b6edf99..ea14d276d5b 100644 --- a/llvm/lib/CodeGen/PeepholeOptimizer.cpp +++ b/llvm/lib/CodeGen/PeepholeOptimizer.cpp @@ -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; |

