Add MemCpyOpt to LTO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-04-22 03:57:36 +00:00
parent 9d4b94d3e1
commit ecbc963eda
2 changed files with 2 additions and 0 deletions

View File

@ -330,6 +330,7 @@ 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
Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores

View File

@ -377,6 +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(createMemCpyOptPass()); // Remove dead memcpy's
passes.add(createGVNPass()); // Remove common subexprs
passes.add(createDeadStoreEliminationPass()); // Nuke dead stores