mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 06:06:32 +00:00
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:
parent
9d4b94d3e1
commit
ecbc963eda
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user