[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)
commit64764b446b9339ef14ac0b9b7b5063b8abc3190a
tree75a0920c51242ded55ea0acb4cd7d6150578ef65
parent755b6e8a42b23c853d804b6fef7847d9365c4786
[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.

llvm-svn: 225969
llvm/include/llvm/IR/Dominators.h
llvm/lib/IR/Dominators.cpp
llvm/test/Analysis/Dominators/basic.ll
llvm/tools/opt/NewPMDriver.cpp
llvm/tools/opt/PassRegistry.def
llvm/tools/opt/Passes.cpp