diff options
author | Zhou Sheng <zhousheng00@gmail.com> | 2012-12-01 10:54:28 +0000 |
---|---|---|
committer | Zhou Sheng <zhousheng00@gmail.com> | 2012-12-01 10:54:28 +0000 |
commit | 8e6d64a71d043f088867c7bcc590e05d90c856b3 (patch) | |
tree | 7d7d3f1c9107f6f679c0f106be9c35808b44c455 /llvm/lib/VMCore | |
parent | 65d57a3d2aae4976eb8290c9a4f36753b310c206 (diff) | |
download | bcm5719-llvm-8e6d64a71d043f088867c7bcc590e05d90c856b3.tar.gz bcm5719-llvm-8e6d64a71d043f088867c7bcc590e05d90c856b3.zip |
Revert previous check in r168581, r169079 as they are still in code review status.
llvm-svn: 169083
Diffstat (limited to 'llvm/lib/VMCore')
-rw-r--r-- | llvm/lib/VMCore/PassManager.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp index 77e7913c832..9c84f1a4121 100644 --- a/llvm/lib/VMCore/PassManager.cpp +++ b/llvm/lib/VMCore/PassManager.cpp @@ -1640,18 +1640,6 @@ void MPPassManager::addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) { OnTheFlyManagers[P] = FPP; } - - // If RequiredPass is an analysis pass and it is available then do not - // generate the analysis again. Stale analysis info should not be - // available at this point. - const PassInfo *PI = - PassRegistry::getPassRegistry()->getPassInfo(RequiredPass->getPassID()); - if (PI && PI->isAnalysis() && - FPP->getTopLevelManager()->findAnalysisPass(RequiredPass->getPassID())) { - delete RequiredPass; - return; - } - FPP->add(RequiredPass); // Register P as the last user of RequiredPass. |