forked from OSchip/llvm-project
parent
8fb13cbe4e
commit
a5030c3017
|
@ -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