aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2016-08-09 00:28:52 +0000
committerSean Silva <chisophugis@gmail.com>2016-08-09 00:28:52 +0000
commit0746f3bfa4da3daec4a5817570f8a255bc1c2a30 (patch)
treed79383384f9e88ab8736fa9e1cf8db925e20c52e /llvm/lib/Transforms/Scalar/LoopDeletion.cpp
parentfd03ac6a0c7e2092ae9c0a05f229a1a2dd4608ae (diff)
downloadllvm-0746f3bfa4da3daec4a5817570f8a255bc1c2a30.zip
llvm-0746f3bfa4da3daec4a5817570f8a255bc1c2a30.tar.gz
llvm-0746f3bfa4da3daec4a5817570f8a255bc1c2a30.tar.bz2
Consistently use LoopAnalysisManager
One exception here is LoopInfo which must forward-declare it (because the typedef is in LoopPassManager.h which depends on LoopInfo). Also, some includes for LoopPassManager.h were needed since that file provides the typedef. Besides a general consistently benefit, the extra layer of indirection allows the mechanical part of https://reviews.llvm.org/D23256 that requires touching every transformation and analysis to be factored out cleanly. Thanks to David for the suggestion. llvm-svn: 278079
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDeletion.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopDeletion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
index 19b2f895..187e6e3 100644
--- a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
@@ -215,7 +215,7 @@ bool LoopDeletionPass::runImpl(Loop *L, DominatorTree &DT, ScalarEvolution &SE,
return Changed;
}
-PreservedAnalyses LoopDeletionPass::run(Loop &L, AnalysisManager<Loop> &AM) {
+PreservedAnalyses LoopDeletionPass::run(Loop &L, LoopAnalysisManager &AM) {
auto &FAM = AM.getResult<FunctionAnalysisManagerLoopProxy>(L).getManager();
Function *F = L.getHeader()->getParent();