summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Passes/PassRegistry.def
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-01-26 02:13:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-01-26 02:13:50 +0000
commiteab3b90a148ce154fc54572ece849bf83589ae3a (patch)
tree353d5bba47b3f52f914457c9477610129f1e36f3 /llvm/lib/Passes/PassRegistry.def
parent891c777f90cd86e3955cdaae349bffcb29735bc9 (diff)
downloadbcm5719-llvm-eab3b90a148ce154fc54572ece849bf83589ae3a.tar.gz
bcm5719-llvm-eab3b90a148ce154fc54572ece849bf83589ae3a.zip
[PM] Simplify the new PM interface to the loop unroller and expose two
factory functions for the two modes the loop unroller is actually used in in-tree: simplified full-unrolling and the entire thing including partial unrolling. I've also wired these up to nice names so you can express both of these being in a pipeline easily. This is a precursor to actually enabling these parts of the O2 pipeline. Differential Revision: https://reviews.llvm.org/D28897 llvm-svn: 293136
Diffstat (limited to 'llvm/lib/Passes/PassRegistry.def')
-rw-r--r--llvm/lib/Passes/PassRegistry.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Passes/PassRegistry.def b/llvm/lib/Passes/PassRegistry.def
index bfa1868692d..23a932fe1a8 100644
--- a/llvm/lib/Passes/PassRegistry.def
+++ b/llvm/lib/Passes/PassRegistry.def
@@ -224,7 +224,8 @@ LOOP_PASS("loop-deletion", LoopDeletionPass())
LOOP_PASS("simplify-cfg", LoopSimplifyCFGPass())
LOOP_PASS("strength-reduce", LoopStrengthReducePass())
LOOP_PASS("indvars", IndVarSimplifyPass())
-LOOP_PASS("unroll", LoopUnrollPass())
+LOOP_PASS("unroll", LoopUnrollPass::create())
+LOOP_PASS("unroll-full", LoopUnrollPass::createFull())
LOOP_PASS("print-access-info", LoopAccessInfoPrinterPass(dbgs()))
LOOP_PASS("print<ivusers>", IVUsersPrinterPass(dbgs()))
LOOP_PASS("loop-predication", LoopPredicationPass())
OpenPOWER on IntegriCloud