[CVP] Require DomTree for new Pass Manager
commit519b8ede8d37b21950dad89d28ba3588d56b7514
authorDavid Green <david.green@arm.com>
Mon, 21 May 2018 11:06:28 +0000 (21 11:06 +0000)
committerDavid Green <david.green@arm.com>
Mon, 21 May 2018 11:06:28 +0000 (21 11:06 +0000)
treea3c95b50eb3c9a2187b7df66948b47e3fff71de1
parent48b86e9c04b568744d0051de2780a9940e4706d8
[CVP] Require DomTree for new Pass Manager

We were previously using a DT in CVP through SimplifyQuery, but not requiring it in
the new pass manager. Hence it would crash if DT was not already available. This now
gets DT directly and plumbs it through to where it is used (instead of using it
through SQ).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332836 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
test/Transforms/CorrelatedValuePropagation/phi-common-val.ll