diff options
author | Devang Patel <dpatel@apple.com> | 2008-07-03 07:02:30 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-07-03 07:02:30 +0000 |
commit | 874a3a0b0d9d865494005812fa6aa5a5d0c20769 (patch) | |
tree | 5ff52db9dee8ce79733153ec738584d36251e304 /llvm/lib/Analysis/LoopPass.cpp | |
parent | 226edd18263b888f241f8e6eea97ded4eaf0f159 (diff) | |
download | bcm5719-llvm-874a3a0b0d9d865494005812fa6aa5a5d0c20769.tar.gz bcm5719-llvm-874a3a0b0d9d865494005812fa6aa5a5d0c20769.zip |
Keep track of inherited analysis (e.g. dominator tree).
llvm-svn: 53088
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index 2236834cd6e..4cbafab7b07 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -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); |