[llvm] r366388 - Make DT a transitive dependency of LI.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 16:31:59 PDT 2019
Author: eugenis
Date: Wed Jul 17 16:31:59 2019
New Revision: 366388
URL: http://llvm.org/viewvc/llvm-project?rev=366388&view=rev
Log:
Make DT a transitive dependency of LI.
Summary:
LoopInfoWrapperPass::verify uses DT, which means DT must be alive
even if it has no direct users.
Fixes a crash in expensive checks mode.
Reviewers: pcc, leonardchan
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64896
Modified:
llvm/trunk/lib/Analysis/LoopInfo.cpp
Modified: llvm/trunk/lib/Analysis/LoopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopInfo.cpp?rev=366388&r1=366387&r2=366388&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopInfo.cpp Wed Jul 17 16:31:59 2019
@@ -1039,7 +1039,7 @@ void LoopInfoWrapperPass::verifyAnalysis
void LoopInfoWrapperPass::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
- AU.addRequired<DominatorTreeWrapperPass>();
+ AU.addRequiredTransitive<DominatorTreeWrapperPass>();
}
void LoopInfoWrapperPass::print(raw_ostream &OS, const Module *) const {
More information about the llvm-commits
mailing list