OSDN Git Service

Rearrange Dom unittest to accommodate multiple tests
authorAdam Nemet <anemet@apple.com>
Sat, 27 May 2017 04:05:52 +0000 (04:05 +0000)
committerAdam Nemet <anemet@apple.com>
Sat, 27 May 2017 04:05:52 +0000 (04:05 +0000)
commitad7d2c0d6e63ae54116d57449759fe582e1efc0d
treecf11dd0fef1e87dc88a9a64e5b348054abb23779
parentbfb2ddf65c03a5743beee6c61a4f3ca45ae01213
Rearrange Dom unittest to accommodate multiple tests

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 Revision: https://reviews.llvm.org/D33617

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304061 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/IR/DominatorTreeTest.cpp