aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Passes/PassBuilder.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-07-18 16:29:27 +0000
committerAdam Nemet <anemet@apple.com>2016-07-18 16:29:27 +0000
commitb2593f78cabbea2703d6442c016638740fe5f660 (patch)
tree9f06e403d90ba5b30f94d26ffbe010e168a56091 /llvm/lib/Passes/PassBuilder.cpp
parent79ac42a5c99135ed6ecf8c011471d42ec5269f6c (diff)
downloadllvm-b2593f78cabbea2703d6442c016638740fe5f660.zip
llvm-b2593f78cabbea2703d6442c016638740fe5f660.tar.gz
llvm-b2593f78cabbea2703d6442c016638740fe5f660.tar.bz2
[LoopDist] Port to new PM
Summary: The direct motivation for the port is to ensure that the OptRemarkEmitter tests work with the new PM. This remains a function pass because we not only create multiple loops but could also version the original loop. In the test I need to invoke opt with -passes='require<aa>,loop-distribute'. LoopDistribute does not directly depend on AA however LAA does. LAA uses getCachedResult so I *think* we need manually pull in 'aa'. Reviewers: davidxl, silvas Subscribers: sanjoy, llvm-commits, mzolotukhin Differential Revision: https://reviews.llvm.org/D22437 llvm-svn: 275811
Diffstat (limited to 'llvm/lib/Passes/PassBuilder.cpp')
-rw-r--r--llvm/lib/Passes/PassBuilder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index aa276be..0e64df8 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -92,6 +92,7 @@
#include "llvm/Transforms/Scalar/JumpThreading.h"
#include "llvm/Transforms/Scalar/LICM.h"
#include "llvm/Transforms/Scalar/LoopDeletion.h"
+#include "llvm/Transforms/Scalar/LoopDistribute.h"
#include "llvm/Transforms/Scalar/LoopIdiomRecognize.h"
#include "llvm/Transforms/Scalar/LoopInstSimplify.h"
#include "llvm/Transforms/Scalar/LoopRotation.h"