[PATCH] D64896: Make DT a transitive dependency of LI.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 16:22:48 PDT 2019
eugenis created this revision.
eugenis added reviewers: pcc, leonardchan.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
LoopInfoWrapperPass::verify uses DT, which means DT must be alive
even if it has no direct users.
Fixes a crash in expensive checks mode.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64896
Files:
llvm/lib/Analysis/LoopInfo.cpp
Index: llvm/lib/Analysis/LoopInfo.cpp
===================================================================
--- llvm/lib/Analysis/LoopInfo.cpp
+++ llvm/lib/Analysis/LoopInfo.cpp
@@ -1039,7 +1039,7 @@
void LoopInfoWrapperPass::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
- AU.addRequired<DominatorTreeWrapperPass>();
+ AU.addRequiredTransitive<DominatorTreeWrapperPass>();
}
void LoopInfoWrapperPass::print(raw_ostream &OS, const Module *) const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64896.210452.patch
Type: text/x-patch
Size: 479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190717/36e4f538/attachment.bin>
More information about the llvm-commits
mailing list