diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index d1862a08fcf..f9dd161c757 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -282,6 +282,7 @@ void AddStandardCompilePasses(PassManager &PM) { addPass(PM, createLoopIndexSplitPass()); // Index split loops. addPass(PM, createInstructionCombiningPass()); // Clean up after LICM/reassoc addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars + addPass(PM, createLoopDeletionPass()); // Delete dead loops addPass(PM, createLoopUnrollPass()); // Unroll small loops addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller addPass(PM, createGVNPass()); // Remove redundancies