From: Devang Patel Date: Thu, 3 Jul 2008 07:02:30 +0000 (+0000) Subject: Keep track of inherited analysis (e.g. dominator tree). X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=70c09c54b1b5dcb8b757acae69261e4d45fbf4c3;p=oota-llvm.git Keep track of inherited analysis (e.g. dominator tree). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53088 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 2236834cd6e..4cbafab7b07 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -184,6 +184,9 @@ bool LPPassManager::runOnFunction(Function &F) { LI = &getAnalysis(); bool Changed = false; + // Collect inherited analysis from Module level pass manager. + populateInheritedAnalysis(TPM->activeStack); + // Populate Loop Queue for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I) addLoopIntoQueue(*I, LQ);