[llvm-commits] CVS: llvm/tools/gccas/gccas.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jul 22 01:34:43 PDT 2004
Changes in directory llvm/tools/gccas:
gccas.cpp updated: 1.97 -> 1.98
---
Log message:
Remove redundant SCCP pass
Add new DSE pass. Add a temporary option to disable it in case we need it
This is going in after the July 22 nightly tester run, so we'll wait until the 23rd to see it
:)
---
Diffs of the changes: (+5 -1)
Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.97 llvm/tools/gccas/gccas.cpp:1.98
--- llvm/tools/gccas/gccas.cpp:1.97 Thu May 27 00:40:58 2004
+++ llvm/tools/gccas/gccas.cpp Thu Jul 22 03:34:33 2004
@@ -46,6 +46,9 @@
cl::opt<bool>
DisableOptimizations("disable-opt",
cl::desc("Do not run any optimization passes"));
+
+ cl::opt<bool>
+ DisableDSE("disable-dse", cl::desc("Do not run dead store elimination"));
}
@@ -99,11 +102,12 @@
addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions
addPass(PM, createGCSEPass()); // Remove common subexprs
addPass(PM, createSCCPPass()); // Constant prop with SCCP
- addPass(PM, createSCCPPass()); // Constant prop with SCCP
// Run instcombine after redundancy elimination to exploit opportunities
// opened up by them.
addPass(PM, createInstructionCombiningPass());
+ if (!DisableDSE)
+ addPass(PM, createDeadStoreEliminationPass()); // Delete dead stores
addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE'
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
More information about the llvm-commits
mailing list