Use GVN in LTO instead of GCSE+LoadVN.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-04-21 07:51:07 +00:00
parent 4bda6e47e9
commit eb60fb9c1f
2 changed files with 2 additions and 4 deletions

View File

@ -330,8 +330,7 @@ LTO::optimize(Module *M, std::ostream &Out,
Passes.add(createGlobalsModRefPass()); // IP alias analysis
Passes.add(createLICMPass()); // Hoist loop invariants
Passes.add(createLoadValueNumberingPass()); // GVN for load instrs
Passes.add(createGCSEPass()); // Remove common subexprs
Passes.add(createGVNPass()); // Remove common subexprs
Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
// Cleanup and simplify the code after the scalar optimizations.

View File

@ -377,8 +377,7 @@ bool LTOCodeGenerator::generateAssemblyCode(std::ostream& out, std::string& errM
passes.add(createGlobalsModRefPass()); // IP alias analysis
passes.add(createLICMPass()); // Hoist loop invariants
passes.add(createLoadValueNumberingPass()); // GVN for load instrs
passes.add(createGCSEPass()); // Remove common subexprs
passes.add(createGVNPass()); // Remove common subexprs
passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
// Cleanup and simplify the code after the scalar optimizations.