Turn on FastDSE by default.
authorOwen Anderson <resistor@mac.com>
Tue, 17 Jul 2007 21:59:21 +0000 (21:59 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 17 Jul 2007 21:59:21 +0000 (21:59 +0000)
Note: FastDSE now equals or exceeds the results of old DSE on all of SPEC2000 and SPEC2006. Unless major problems
show up in the testers, it will likely completely replace old DSE in the near future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39986 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-ld/Optimize.cpp
tools/opt/opt.cpp

index 49b8f4225bc000ae9d33ff356f4ca8452514feb3..308fd546e3acd18c33cc4e531d719038ab6c798c 100644 (file)
@@ -168,7 +168,7 @@ void Optimize(Module* M) {
     addPass(Passes, createLICMPass());               // Hoist loop invariants
     addPass(Passes, createLoadValueNumberingPass()); // GVN for load instrs
     addPass(Passes, createGCSEPass());               // Remove common subexprs
-    addPass(Passes, createDeadStoreEliminationPass()); // Nuke dead stores
+    addPass(Passes, createFastDeadStoreEliminationPass()); // Nuke dead stores
 
     // Cleanup and simplify the code after the scalar optimizations.
     addPass(Passes, createInstructionCombiningPass());
index fc71074fb86c5fced9ca641da7c43fe2a6b1f6cb..24f6b7978df307d4ccbf9f74e1df59e9692f9869 100644 (file)
@@ -291,7 +291,7 @@ void AddStandardCompilePasses(PassManager &PM) {
   addPass(PM, createInstructionCombiningPass());
   addPass(PM, createCondPropagationPass());      // Propagate conditionals
 
-  addPass(PM, createDeadStoreEliminationPass()); // Delete dead stores
+  addPass(PM, createFastDeadStoreEliminationPass()); // Delete dead stores
   addPass(PM, createAggressiveDCEPass());        // SSA based 'Aggressive DCE'
   addPass(PM, createCFGSimplificationPass());    // Merge & remove BBs
   addPass(PM, createSimplifyLibCallsPass());     // Library Call Optimizations