Move MemCpyOpt after GVN.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-04-22 07:12:26 +00:00
parent 6bf77500c6
commit d2368dc344
3 changed files with 3 additions and 3 deletions

View File

@ -169,8 +169,8 @@ void Optimize(Module* M) {
addPass(Passes, createGlobalsModRefPass()); // IP alias analysis
addPass(Passes, createLICMPass()); // Hoist loop invariants
addPass(Passes, createMemCpyOptPass()); // Remove dead memcpy's
addPass(Passes, createGVNPass()); // Remove redundancies
addPass(Passes, createMemCpyOptPass()); // Remove dead memcpy's
addPass(Passes, createDeadStoreEliminationPass()); // Nuke dead stores
// Cleanup and simplify the code after the scalar optimizations.

View File

@ -330,8 +330,8 @@ LTO::optimize(Module *M, std::ostream &Out,
Passes.add(createGlobalsModRefPass()); // IP alias analysis
Passes.add(createLICMPass()); // Hoist loop invariants
Passed.add(createMemCpyOptPass()); // Remove dead memcpy's
Passes.add(createGVNPass()); // Remove common subexprs
Passed.add(createMemCpyOptPass()); // Remove dead memcpy's
Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
// Cleanup and simplify the code after the scalar optimizations.

View File

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