forked from OSchip/llvm-project
parent
3df4c15dc7
commit
7432cbd048
|
@ -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