aboutsummaryrefslogtreecommitdiffstats
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-04-10 15:43:36 +0000
committerDevang Patel <dpatel@apple.com>2007-04-10 15:43:36 +0000
commit0aa37f472a920d8d8e8b6340db29f69641770749 (patch)
treee9a9019056631b8e662d3e40490a771c0a0556b1 /tools/opt/opt.cpp
parent403949ea93d78796fcd803e75c97b68e53e331a9 (diff)
downloadexternal_llvm-0aa37f472a920d8d8e8b6340db29f69641770749.zip
external_llvm-0aa37f472a920d8d8e8b6340db29f69641770749.tar.gz
external_llvm-0aa37f472a920d8d8e8b6340db29f69641770749.tar.bz2
Enable loop rotate pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35863 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 14dd158..fab3ce2 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -212,6 +212,7 @@ void AddStandardCompilePasses(PassManager &PM) {
addPass(PM, createTailCallEliminationPass()); // Eliminate tail calls
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
addPass(PM, createReassociatePass()); // Reassociate expressions
+ addPass(PM, createLoopRotatePass());
addPass(PM, createLICMPass()); // Hoist loop invariants
addPass(PM, createLoopUnswitchPass()); // Unswitch loops.
addPass(PM, createInstructionCombiningPass()); // Clean up after LICM/reassoc