[CVP] Require DomTree for new Pass Manager
authorDavid Green <david.green@arm.com>
Mon, 21 May 2018 11:06:28 +0000 (11:06 +0000)
committerDavid Green <david.green@arm.com>
Mon, 21 May 2018 11:06:28 +0000 (11:06 +0000)
commit8ceab61c75b8f34c90e831c85a3420e3510b501a
treeb5980e51b14b10153fb6faa1354b95c9a2680db6
parent563d0b9cb95ab9b3420b9fdb57b4a936541f7c61
[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).

llvm-svn: 332836
llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
llvm/test/Transforms/CorrelatedValuePropagation/phi-common-val.ll