From efcdb2944bb81519c839feef3a83feed35552393 Mon Sep 17 00:00:00 2001 From: Zhou Sheng Date: Sat, 1 Dec 2012 10:54:28 +0000 Subject: Revert previous check in r168581, r169079 as they are still in code review status. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169083 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/PassManager.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/VMCore/PassManager.cpp') diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 77e7913c83..9c84f1a412 100644 --- a/lib/VMCore/PassManager.cpp +++ b/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. -- cgit v1.2.3