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 | efcdb2944bb81519c839feef3a83feed35552393 (patch) | |
tree | dce4929e5a4caca07d28610f0fcbd23d70b11e6a /lib/VMCore | |
parent | 702aa2ee19132593b552d211c985aa540787c197 (diff) | |
download | external_llvm-efcdb2944bb81519c839feef3a83feed35552393.zip external_llvm-efcdb2944bb81519c839feef3a83feed35552393.tar.gz external_llvm-efcdb2944bb81519c839feef3a83feed35552393.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 77e7913..9c84f1a 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. |