Keep track of inherited analysis (e.g. dominator tree).
authorDevang Patel <dpatel@apple.com>
Thu, 3 Jul 2008 07:02:30 +0000 (07:02 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 3 Jul 2008 07:02:30 +0000 (07:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53088 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LoopPass.cpp

index 2236834cd6e0fba77f40914efd0cb2ee615909c4..4cbafab7b07fb34ea86b1fe13b98e2660dbbc9bb 100644 (file)
@@ -184,6 +184,9 @@ bool LPPassManager::runOnFunction(Function &F) {
   LI = &getAnalysis<LoopInfo>();
   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);