[PATCH] D46893: [CVP] Require DomTree for new Pass Manager
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 15 10:20:45 PDT 2018
dmgreen created this revision.
dmgreen added reviewers: chandlerc, spatel.
Ensure we have a domtree. It is required but used through SimplifyQuery
https://reviews.llvm.org/D46893
Files:
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
Index: lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
===================================================================
--- lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
+++ lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
@@ -757,6 +757,9 @@
CorrelatedValuePropagationPass::run(Function &F, FunctionAnalysisManager &AM) {
LazyValueInfo *LVI = &AM.getResult<LazyValueAnalysis>(F);
+ // Ensure we have a domtree, it is required but used through SimplifyQuery
+ AM.getResult<DominatorTreeAnalysis>(F);
+
bool Changed = runImpl(F, LVI, getBestSimplifyQuery(AM, F));
if (!Changed)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46893.146870.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180515/a8748492/attachment.bin>
More information about the llvm-commits
mailing list