I've taken the approach from the LoopInfo test:
- Rather than running in the pass manager just build the analyses manually
- Split out the common parts (makeLLVMModule, runWithDomTree) into helpers
Differential D33617
Rearrange Dom unittest to accommodate multiple tests ClosedPublic Authored by anemet on May 26 2017, 4:57 PM.
Details Summary I've taken the approach from the LoopInfo test:
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 26 2017, 6:43 PM Closed by commit rL304061: Rearrange Dom unittest to accommodate multiple tests (authored by anemet). · Explain WhyMay 26 2017, 9:06 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 100504 unittests/IR/DominatorTreeTest.cpp |
I'd write this as DominatorTreeBase<BasicBlock> PDT(/*isPostDom*/true)