[llvm-commits] [llvm] r50682 - /llvm/trunk/tools/opt/opt.cpp
Owen Anderson
resistor at mac.com
Mon May 5 16:38:07 PDT 2008
Author: resistor
Date: Mon May 5 18:38:07 2008
New Revision: 50682
URL: http://llvm.org/viewvc/llvm-project?rev=50682&view=rev
Log:
Enable dead loop elimination.
Modified:
llvm/trunk/tools/opt/opt.cpp
Modified: llvm/trunk/tools/opt/opt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/opt.cpp?rev=50682&r1=50681&r2=50682&view=diff
==============================================================================
--- llvm/trunk/tools/opt/opt.cpp (original)
+++ llvm/trunk/tools/opt/opt.cpp Mon May 5 18:38:07 2008
@@ -282,6 +282,7 @@
addPass(PM, createLoopIndexSplitPass()); // Index split loops.
addPass(PM, createInstructionCombiningPass()); // Clean up after LICM/reassoc
addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
+ addPass(PM, createLoopDeletionPass()); // Remove dead loops
addPass(PM, createLoopUnrollPass()); // Unroll small loops
addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
addPass(PM, createGVNPass()); // Remove redundancies
More information about the llvm-commits
mailing list