aboutsummaryrefslogtreecommitdiffstats
path: root/tools/opt
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-05-10 07:10:24 +0000
committerOwen Anderson <resistor@mac.com>2008-05-10 07:10:24 +0000
commit4982babf4a2ae663ab841bd7f456078a306ad450 (patch)
treea89e60413c94057bc21579f202fd003288a24075 /tools/opt
parent50d9e7289b86fa02b8f121f5aeceffb4b248a9b6 (diff)
downloadexternal_llvm-4982babf4a2ae663ab841bd7f456078a306ad450.zip
external_llvm-4982babf4a2ae663ab841bd7f456078a306ad450.tar.gz
external_llvm-4982babf4a2ae663ab841bd7f456078a306ad450.tar.bz2
Re-enable loop deletion by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-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..f9dd161 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