diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-10-30 11:19:06 -0700 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-10-30 11:40:16 -0700 |
commit | 9f0ff0b2634bab6a5be8dace005c9eb24d386dd1 (patch) | |
tree | ad57d55f88d0ee444ec66543cdf842312ced21ff /llvm/unittests/IR/LegacyPassManagerTest.cpp | |
parent | f25f3d39df42ebcc8a394c8ce85981235a6720b0 (diff) | |
download | bcm5719-llvm-9f0ff0b2634bab6a5be8dace005c9eb24d386dd1.tar.gz bcm5719-llvm-9f0ff0b2634bab6a5be8dace005c9eb24d386dd1.zip |
[LegacyPassManager] Delete BasicBlockPass/Manager.
Summary:
Delete the BasicBlockPass and BasicBlockManager, all its dependencies and update documentation.
The BasicBlockManager was improperly tested and found to be potentially broken, and was deprecated as of rL373254.
In light of the switch to the new pass manager coming before the next release, this patch is a first cleanup of the LegacyPassManager.
Reviewers: chandlerc, echristo
Subscribers: mehdi_amini, sanjoy.google, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69121
Diffstat (limited to 'llvm/unittests/IR/LegacyPassManagerTest.cpp')
-rw-r--r-- | llvm/unittests/IR/LegacyPassManagerTest.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/llvm/unittests/IR/LegacyPassManagerTest.cpp b/llvm/unittests/IR/LegacyPassManagerTest.cpp index 6c0c251aff9..1ce7fa0bd0e 100644 --- a/llvm/unittests/IR/LegacyPassManagerTest.cpp +++ b/llvm/unittests/IR/LegacyPassManagerTest.cpp @@ -38,7 +38,6 @@ namespace llvm { void initializeFPassPass(PassRegistry&); void initializeCGPassPass(PassRegistry&); void initializeLPassPass(PassRegistry&); - void initializeBPassPass(PassRegistry&); namespace { // ND = no deps @@ -219,47 +218,6 @@ namespace llvm { int LPass::initcount=0; int LPass::fincount=0; - struct BPass : public PassTestBase<BasicBlockPass> { - private: - static int inited; - static int fin; - public: - static void finishedOK(int run, int N) { - PassTestBase<BasicBlockPass>::finishedOK(run); - EXPECT_EQ(inited, N); - EXPECT_EQ(fin, N); - } - BPass() { - inited = 0; - fin = 0; - } - bool doInitialization(Module &M) override { - EXPECT_FALSE(initialized); - initialized = true; - return false; - } - bool doInitialization(Function &F) override { - inited++; - return false; - } - bool runOnBasicBlock(BasicBlock &BB) override { - run(); - return false; - } - bool doFinalization(Function &F) override { - fin++; - return false; - } - bool doFinalization(Module &M) override { - EXPECT_FALSE(finalized); - finalized = true; - EXPECT_EQ(0, allocated); - return false; - } - }; - int BPass::inited=0; - int BPass::fin=0; - struct OnTheFlyTest: public ModulePass { public: static char ID; @@ -374,10 +332,6 @@ namespace llvm { SCOPED_TRACE("Loop pass"); MemoryTestHelper<LPass>(2, 1); //2 loops, 1 function } - { - SCOPED_TRACE("Basic block pass"); - MemoryTestHelper<BPass>(7, 4); //9 basic blocks - } } @@ -616,4 +570,3 @@ INITIALIZE_PASS(FPass, "fp","fp", false, false) INITIALIZE_PASS_BEGIN(LPass, "lp","lp", false, false) INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass) INITIALIZE_PASS_END(LPass, "lp","lp", false, false) -INITIALIZE_PASS(BPass, "bp","bp", false, false) |