mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 08:54:58 +00:00
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:
parent
6bf77500c6
commit
d2368dc344
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user