aboutsummaryrefslogtreecommitdiffstats
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-05-05 23:38:07 +0000
committerOwen Anderson <resistor@mac.com>2008-05-05 23:38:07 +0000
commit3f3d95c75a9426ad459462662c312850adf9c095 (patch)
tree510ddf81734d725f573531640244fb0a34ef1412 /tools/opt/opt.cpp
parent88c1baa50c3947026f0ee76471933775b31e2a49 (diff)
downloadexternal_llvm-3f3d95c75a9426ad459462662c312850adf9c095.zip
external_llvm-3f3d95c75a9426ad459462662c312850adf9c095.tar.gz
external_llvm-3f3d95c75a9426ad459462662c312850adf9c095.tar.bz2
Enable dead loop elimination.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index d1862a0..263053c 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()); // Remove dead loops
addPass(PM, createLoopUnrollPass()); // Unroll small loops
addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
addPass(PM, createGVNPass()); // Remove redundancies