llvm.org GIT mirror llvm / eb60fb9
Use GVN in LTO instead of GCSE+LoadVN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50036 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 11 years ago
2 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
329329 Passes.add(createGlobalsModRefPass()); // IP alias analysis
330330
331331 Passes.add(createLICMPass()); // Hoist loop invariants
332 Passes.add(createLoadValueNumberingPass()); // GVN for load instrs
333 Passes.add(createGCSEPass()); // Remove common subexprs
332 Passes.add(createGVNPass()); // Remove common subexprs
334333 Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
335334
336335 // Cleanup and simplify the code after the scalar optimizations.
376376 passes.add(createGlobalsModRefPass()); // IP alias analysis
377377
378378 passes.add(createLICMPass()); // Hoist loop invariants
379 passes.add(createLoadValueNumberingPass()); // GVN for load instrs
380 passes.add(createGCSEPass()); // Remove common subexprs
379 passes.add(createGVNPass()); // Remove common subexprs
381380 passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
382381
383382 // Cleanup and simplify the code after the scalar optimizations.