llvm.org GIT mirror llvm / d06eb2c
Turn GVN on by default. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41787 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 12 years ago
2 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
165165 addPass(Passes, createGlobalsModRefPass()); // IP alias analysis
166166
167167 addPass(Passes, createLICMPass()); // Hoist loop invariants
168 addPass(Passes, createLoadValueNumberingPass()); // GVN for load instrs
169 addPass(Passes, createGCSEPass()); // Remove common subexprs
168 addPass(Passes, createGVNPass()); // Remove redundancies
170169 addPass(Passes, createDeadStoreEliminationPass()); // Nuke dead stores
171170
172171 // Cleanup and simplify the code after the scalar optimizations.
281281 addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
282282 addPass(PM, createLoopUnrollPass()); // Unroll small loops
283283 addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
284 addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions
285 addPass(PM, createGCSEPass()); // Remove common subexprs
284 addPass(PM, createGVNPass()); // Remove redundancies
286285 addPass(PM, createSCCPPass()); // Constant prop with SCCP
287286
288287 // Run instcombine after redundancy elimination to exploit opportunities