Add MemCpyOpt to LTO.

llvm-svn: 50081
This commit is contained in:
Owen Anderson 2008-04-22 03:57:36 +00:00
parent 8fb13cbe4e
commit a5030c3017
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(createGlobalsModRefPass()); // IP alias analysis
Passes.add(createLICMPass()); // Hoist loop invariants Passes.add(createLICMPass()); // Hoist loop invariants
Passed.add(createMemCpyOptPass()); // Remove dead memcpy's
Passes.add(createGVNPass()); // Remove common subexprs Passes.add(createGVNPass()); // Remove common subexprs
Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores 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(createGlobalsModRefPass()); // IP alias analysis
passes.add(createLICMPass()); // Hoist loop invariants passes.add(createLICMPass()); // Hoist loop invariants
passes.add(createMemCpyOptPass()); // Remove dead memcpy's
passes.add(createGVNPass()); // Remove common subexprs passes.add(createGVNPass()); // Remove common subexprs
passes.add(createDeadStoreEliminationPass()); // Nuke dead stores passes.add(createDeadStoreEliminationPass()); // Nuke dead stores