diff options
author | Hongbin Zheng <etherzhhb@gmail.com> | 2016-02-25 16:33:06 +0000 |
---|---|---|
committer | Hongbin Zheng <etherzhhb@gmail.com> | 2016-02-25 16:33:06 +0000 |
commit | a0273a04f53e89c6ef771a73ddedc4c25bbf62d9 (patch) | |
tree | acc9cc0cde44a120159c5678c46f6adcdb8f51cc /llvm/unittests/IR/DominatorTreeTest.cpp | |
parent | 148445ef985eedf7d2d05467b5b8d634fc156bd6 (diff) | |
download | bcm5719-llvm-a0273a04f53e89c6ef771a73ddedc4c25bbf62d9.tar.gz bcm5719-llvm-a0273a04f53e89c6ef771a73ddedc4c25bbf62d9.zip |
Introduce analysis pass to compute PostDominators in the new pass manager. NFC
Differential Revision: http://reviews.llvm.org/D17537
llvm-svn: 261882
Diffstat (limited to 'llvm/unittests/IR/DominatorTreeTest.cpp')
-rw-r--r-- | llvm/unittests/IR/DominatorTreeTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/unittests/IR/DominatorTreeTest.cpp b/llvm/unittests/IR/DominatorTreeTest.cpp index 3aef4d64cbc..fcd6b9c65b4 100644 --- a/llvm/unittests/IR/DominatorTreeTest.cpp +++ b/llvm/unittests/IR/DominatorTreeTest.cpp @@ -29,7 +29,8 @@ namespace llvm { bool runOnFunction(Function &F) override { DominatorTree *DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree(); - PostDominatorTree *PDT = &getAnalysis<PostDominatorTree>(); + PostDominatorTree *PDT = + &getAnalysis<PostDominatorTreeWrapperPass>().getPostDomTree(); Function::iterator FI = F.begin(); BasicBlock *BB0 = &*FI++; @@ -206,7 +207,7 @@ namespace llvm { } void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<DominatorTreeWrapperPass>(); - AU.addRequired<PostDominatorTree>(); + AU.addRequired<PostDominatorTreeWrapperPass>(); } DPass() : FunctionPass(ID) { initializeDPassPass(*PassRegistry::getPassRegistry()); @@ -255,5 +256,5 @@ namespace llvm { INITIALIZE_PASS_BEGIN(DPass, "dpass", "dpass", false, false) INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass) -INITIALIZE_PASS_DEPENDENCY(PostDominatorTree) +INITIALIZE_PASS_DEPENDENCY(PostDominatorTreeWrapperPass) INITIALIZE_PASS_END(DPass, "dpass", "dpass", false, false) |