Turn GVN on by default.

llvm-svn: 41787
This commit is contained in:
Owen Anderson 2007-09-08 22:23:52 +00:00
parent 29e6ac4281
commit 4266bb73e8
2 changed files with 2 additions and 4 deletions

View File

@ -166,8 +166,7 @@ void Optimize(Module* M) {
addPass(Passes, createGlobalsModRefPass()); // IP alias analysis
addPass(Passes, createLICMPass()); // Hoist loop invariants
addPass(Passes, createLoadValueNumberingPass()); // GVN for load instrs
addPass(Passes, createGCSEPass()); // Remove common subexprs
addPass(Passes, createGVNPass()); // Remove redundancies
addPass(Passes, createDeadStoreEliminationPass()); // Nuke dead stores
// Cleanup and simplify the code after the scalar optimizations.

View File

@ -282,8 +282,7 @@ void AddStandardCompilePasses(PassManager &PM) {
addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
addPass(PM, createLoopUnrollPass()); // Unroll small loops
addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions
addPass(PM, createGCSEPass()); // Remove common subexprs
addPass(PM, createGVNPass()); // Remove redundancies
addPass(PM, createSCCPPass()); // Constant prop with SCCP
// Run instcombine after redundancy elimination to exploit opportunities