[llvm-commits] [llvm] r112287 - /llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp
Bill Wendling
isanbard at gmail.com
Fri Aug 27 13:39:09 PDT 2010
Author: void
Date: Fri Aug 27 15:39:09 2010
New Revision: 112287
URL: http://llvm.org/viewvc/llvm-project?rev=112287&view=rev
Log:
Remove now unneeded command line flag that enables 'optimize compares.'
Modified:
llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp
Modified: llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp?rev=112287&r1=112286&r2=112287&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp (original)
+++ llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp Fri Aug 27 15:39:09 2010
@@ -50,12 +50,7 @@
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 @@
/// 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;
More information about the llvm-commits
mailing list