[PM] Port domtree to the new pass manager (at last).
authorChandler Carruth <chandlerc@gmail.com>
Wed, 14 Jan 2015 10:19:28 +0000 (10:19 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 14 Jan 2015 10:19:28 +0000 (10:19 +0000)
commit8c3a02f8fe6df3086735b1b7d9d7f2c6c506c738
tree266fb6ddcdbd2a9535c0a974233548676347be17
parent92e28620d30bc461265e9dad7b752a79349ad639
[PM] Port domtree to the new pass manager (at last).

This adds the domtree analysis to the new pass manager. The analysis
returns the same DominatorTree result entity used by the old pass
manager and essentially all of the code is shared. We just have
different boilerplate for running and printing the analysis.

I've converted one test to run in both modes just to make sure this is
exercised while both are live in the tree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225969 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Dominators.h
lib/IR/Dominators.cpp
test/Analysis/Dominators/basic.ll
tools/opt/NewPMDriver.cpp
tools/opt/PassRegistry.def
tools/opt/Passes.cpp