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)
commit147ede9a089eb4a7b5a9a2d598e4669dafdf5a6c
tree4258c73961b1a330eb60cbc958b7b4172481daf9
parent7fa6dee2e33bdb3628d897b691feac5d7a16f76c
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

llvm-svn: 304061
llvm/unittests/IR/DominatorTreeTest.cpp