Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 1 | //===- LoopExtractor.cpp - Extract each loop into a new function ----------===// |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 2 | // |
Chris Lattner | efddcfa | 2004-03-14 02:34:07 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame^] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 7 | // |
Chris Lattner | efddcfa | 2004-03-14 02:34:07 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 9 | // |
| 10 | // A pass wrapper around the ExtractLoop() scalar transformation to extract each |
| 11 | // top-level loop into its own new function. If the loop is the ONLY loop in a |
Misha Brukman | 38b8fd1 | 2004-03-02 00:19:09 +0000 | [diff] [blame] | 12 | // given function, it is not touched. This is a pass most useful for debugging |
| 13 | // via bugpoint. |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 14 | // |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | |
Chris Lattner | 86453c5 | 2006-12-19 22:09:18 +0000 | [diff] [blame] | 17 | #define DEBUG_TYPE "loop-extract" |
Chris Lattner | 1e3cb34 | 2004-03-14 02:37:16 +0000 | [diff] [blame] | 18 | #include "llvm/Transforms/IPO.h" |
Misha Brukman | 47b14a4 | 2004-07-29 17:30:56 +0000 | [diff] [blame] | 19 | #include "llvm/Instructions.h" |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 20 | #include "llvm/Module.h" |
| 21 | #include "llvm/Pass.h" |
Chris Lattner | 369287b | 2004-03-18 03:48:06 +0000 | [diff] [blame] | 22 | #include "llvm/Analysis/Dominators.h" |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 23 | #include "llvm/Analysis/LoopInfo.h" |
Nick Lewycky | 6fa98b1 | 2007-11-14 06:47:06 +0000 | [diff] [blame] | 24 | #include "llvm/Support/CommandLine.h" |
Reid Spencer | 9133fe2 | 2007-02-05 23:32:05 +0000 | [diff] [blame] | 25 | #include "llvm/Support/Compiler.h" |
Chris Lattner | 16d0eb0 | 2004-03-14 04:01:06 +0000 | [diff] [blame] | 26 | #include "llvm/Transforms/Scalar.h" |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 27 | #include "llvm/Transforms/Utils/FunctionUtils.h" |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 28 | #include "llvm/ADT/Statistic.h" |
Nick Lewycky | 6fa98b1 | 2007-11-14 06:47:06 +0000 | [diff] [blame] | 29 | #include <fstream> |
| 30 | #include <set> |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 31 | using namespace llvm; |
| 32 | |
Chris Lattner | 86453c5 | 2006-12-19 22:09:18 +0000 | [diff] [blame] | 33 | STATISTIC(NumExtracted, "Number of loops extracted"); |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 34 | |
Chris Lattner | 86453c5 | 2006-12-19 22:09:18 +0000 | [diff] [blame] | 35 | namespace { |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 36 | // FIXME: This is not a function pass, but the PassManager doesn't allow |
| 37 | // Module passes to require FunctionPasses, so we can't get loop info if we're |
| 38 | // not a function pass. |
Reid Spencer | 9133fe2 | 2007-02-05 23:32:05 +0000 | [diff] [blame] | 39 | struct VISIBILITY_HIDDEN LoopExtractor : public FunctionPass { |
Nick Lewycky | ecd94c8 | 2007-05-06 13:37:16 +0000 | [diff] [blame] | 40 | static char ID; // Pass identification, replacement for typeid |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 41 | unsigned NumLoops; |
| 42 | |
Dan Gohman | c2bbfc1 | 2007-08-01 15:32:29 +0000 | [diff] [blame] | 43 | explicit LoopExtractor(unsigned numLoops = ~0) |
Devang Patel | 794fd75 | 2007-05-01 21:15:47 +0000 | [diff] [blame] | 44 | : FunctionPass((intptr_t)&ID), NumLoops(numLoops) {} |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 45 | |
Chris Lattner | efddcfa | 2004-03-14 02:34:07 +0000 | [diff] [blame] | 46 | virtual bool runOnFunction(Function &F); |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 47 | |
Chris Lattner | efddcfa | 2004-03-14 02:34:07 +0000 | [diff] [blame] | 48 | virtual void getAnalysisUsage(AnalysisUsage &AU) const { |
Chris Lattner | fdded9f | 2004-03-18 05:43:18 +0000 | [diff] [blame] | 49 | AU.addRequiredID(BreakCriticalEdgesID); |
| 50 | AU.addRequiredID(LoopSimplifyID); |
Owen Anderson | c6fcf29 | 2007-04-07 05:31:27 +0000 | [diff] [blame] | 51 | AU.addRequired<DominatorTree>(); |
Chris Lattner | efddcfa | 2004-03-14 02:34:07 +0000 | [diff] [blame] | 52 | AU.addRequired<LoopInfo>(); |
| 53 | } |
| 54 | }; |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 55 | |
Devang Patel | 1997473 | 2007-05-03 01:11:54 +0000 | [diff] [blame] | 56 | char LoopExtractor::ID = 0; |
Chris Lattner | 7f8897f | 2006-08-27 22:42:52 +0000 | [diff] [blame] | 57 | RegisterPass<LoopExtractor> |
Chris Lattner | efddcfa | 2004-03-14 02:34:07 +0000 | [diff] [blame] | 58 | X("loop-extract", "Extract loops into new functions"); |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 59 | |
| 60 | /// SingleLoopExtractor - For bugpoint. |
| 61 | struct SingleLoopExtractor : public LoopExtractor { |
Nick Lewycky | ecd94c8 | 2007-05-06 13:37:16 +0000 | [diff] [blame] | 62 | static char ID; // Pass identification, replacement for typeid |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 63 | SingleLoopExtractor() : LoopExtractor(1) {} |
| 64 | }; |
| 65 | |
Devang Patel | 1997473 | 2007-05-03 01:11:54 +0000 | [diff] [blame] | 66 | char SingleLoopExtractor::ID = 0; |
Chris Lattner | 7f8897f | 2006-08-27 22:42:52 +0000 | [diff] [blame] | 67 | RegisterPass<SingleLoopExtractor> |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 68 | Y("loop-extract-single", "Extract at most one loop into a new function"); |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 69 | } // End anonymous namespace |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 70 | |
Jeff Cohen | bf65268 | 2005-01-08 17:21:40 +0000 | [diff] [blame] | 71 | // createLoopExtractorPass - This pass extracts all natural loops from the |
| 72 | // program into a function if it can. |
| 73 | // |
Jeff Cohen | ecc1cef | 2005-01-10 04:23:32 +0000 | [diff] [blame] | 74 | FunctionPass *llvm::createLoopExtractorPass() { return new LoopExtractor(); } |
Jeff Cohen | bf65268 | 2005-01-08 17:21:40 +0000 | [diff] [blame] | 75 | |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 76 | bool LoopExtractor::runOnFunction(Function &F) { |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 77 | LoopInfo &LI = getAnalysis<LoopInfo>(); |
| 78 | |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 79 | // If this function has no loops, there is nothing to do. |
| 80 | if (LI.begin() == LI.end()) |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 81 | return false; |
| 82 | |
Owen Anderson | c6fcf29 | 2007-04-07 05:31:27 +0000 | [diff] [blame] | 83 | DominatorTree &DT = getAnalysis<DominatorTree>(); |
Chris Lattner | 369287b | 2004-03-18 03:48:06 +0000 | [diff] [blame] | 84 | |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 85 | // If there is more than one top-level loop in this function, extract all of |
| 86 | // the loops. |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 87 | bool Changed = false; |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 88 | if (LI.end()-LI.begin() > 1) { |
| 89 | for (LoopInfo::iterator i = LI.begin(), e = LI.end(); i != e; ++i) { |
| 90 | if (NumLoops == 0) return Changed; |
| 91 | --NumLoops; |
Devang Patel | 4b90e3a | 2007-06-07 22:17:16 +0000 | [diff] [blame] | 92 | Changed |= ExtractLoop(DT, *i) != 0; |
Chris Lattner | f6e43bc | 2004-03-18 05:46:10 +0000 | [diff] [blame] | 93 | ++NumExtracted; |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 94 | } |
| 95 | } else { |
| 96 | // Otherwise there is exactly one top-level loop. If this function is more |
| 97 | // than a minimal wrapper around the loop, extract the loop. |
| 98 | Loop *TLL = *LI.begin(); |
| 99 | bool ShouldExtractLoop = false; |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 100 | |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 101 | // Extract the loop if the entry block doesn't branch to the loop header. |
| 102 | TerminatorInst *EntryTI = F.getEntryBlock().getTerminator(); |
| 103 | if (!isa<BranchInst>(EntryTI) || |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 104 | !cast<BranchInst>(EntryTI)->isUnconditional() || |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 105 | EntryTI->getSuccessor(0) != TLL->getHeader()) |
| 106 | ShouldExtractLoop = true; |
| 107 | else { |
| 108 | // Check to see if any exits from the loop are more than just return |
| 109 | // blocks. |
Devang Patel | b7211a2 | 2007-08-21 00:31:24 +0000 | [diff] [blame] | 110 | SmallVector<BasicBlock*, 8> ExitBlocks; |
Chris Lattner | f1ab4b4 | 2004-04-18 22:14:10 +0000 | [diff] [blame] | 111 | TLL->getExitBlocks(ExitBlocks); |
| 112 | for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) |
| 113 | if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) { |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 114 | ShouldExtractLoop = true; |
| 115 | break; |
| 116 | } |
| 117 | } |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 118 | |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 119 | if (ShouldExtractLoop) { |
| 120 | if (NumLoops == 0) return Changed; |
| 121 | --NumLoops; |
Devang Patel | 4b90e3a | 2007-06-07 22:17:16 +0000 | [diff] [blame] | 122 | Changed |= ExtractLoop(DT, TLL) != 0; |
Chris Lattner | f6e43bc | 2004-03-18 05:46:10 +0000 | [diff] [blame] | 123 | ++NumExtracted; |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 124 | } else { |
| 125 | // Okay, this function is a minimal container around the specified loop. |
| 126 | // If we extract the loop, we will continue to just keep extracting it |
| 127 | // infinitely... so don't extract it. However, if the loop contains any |
| 128 | // subloops, extract them. |
| 129 | for (Loop::iterator i = TLL->begin(), e = TLL->end(); i != e; ++i) { |
| 130 | if (NumLoops == 0) return Changed; |
| 131 | --NumLoops; |
Devang Patel | 4b90e3a | 2007-06-07 22:17:16 +0000 | [diff] [blame] | 132 | Changed |= ExtractLoop(DT, *i) != 0; |
Chris Lattner | f6e43bc | 2004-03-18 05:46:10 +0000 | [diff] [blame] | 133 | ++NumExtracted; |
Chris Lattner | 5156c39 | 2004-03-15 00:02:02 +0000 | [diff] [blame] | 134 | } |
| 135 | } |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 136 | } |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 137 | |
| 138 | return Changed; |
| 139 | } |
| 140 | |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 141 | // createSingleLoopExtractorPass - This pass extracts one natural loop from the |
| 142 | // program into a function if it can. This is used by bugpoint. |
| 143 | // |
Jeff Cohen | ecc1cef | 2005-01-10 04:23:32 +0000 | [diff] [blame] | 144 | FunctionPass *llvm::createSingleLoopExtractorPass() { |
Chris Lattner | 41bc0b0 | 2004-03-14 20:01:36 +0000 | [diff] [blame] | 145 | return new SingleLoopExtractor(); |
Misha Brukman | 9401deb | 2004-02-28 03:33:01 +0000 | [diff] [blame] | 146 | } |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 147 | |
| 148 | |
| 149 | namespace { |
Nick Lewycky | 6fa98b1 | 2007-11-14 06:47:06 +0000 | [diff] [blame] | 150 | // BlockFile - A file which contains a list of blocks that should not be |
| 151 | // extracted. |
| 152 | cl::opt<std::string> |
| 153 | BlockFile("extract-blocks-file", cl::value_desc("filename"), |
| 154 | cl::desc("A file containing list of basic blocks to not extract"), |
| 155 | cl::Hidden); |
| 156 | |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 157 | /// BlockExtractorPass - This pass is used by bugpoint to extract all blocks |
| 158 | /// from the module into their own functions except for those specified by the |
| 159 | /// BlocksToNotExtract list. |
Chris Lattner | b12914b | 2004-09-20 04:48:05 +0000 | [diff] [blame] | 160 | class BlockExtractorPass : public ModulePass { |
Nick Lewycky | 6fa98b1 | 2007-11-14 06:47:06 +0000 | [diff] [blame] | 161 | void LoadFile(const char *Filename); |
| 162 | |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 163 | std::vector<BasicBlock*> BlocksToNotExtract; |
Nick Lewycky | 6fa98b1 | 2007-11-14 06:47:06 +0000 | [diff] [blame] | 164 | std::vector<std::pair<std::string, std::string> > BlocksToNotExtractByName; |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 165 | public: |
Nick Lewycky | ecd94c8 | 2007-05-06 13:37:16 +0000 | [diff] [blame] | 166 | static char ID; // Pass identification, replacement for typeid |
Gordon Henriksen | 4e1be6d | 2007-11-05 01:54:05 +0000 | [diff] [blame] | 167 | explicit BlockExtractorPass(const std::vector<BasicBlock*> &B) |
Nick Lewycky | 6fa98b1 | 2007-11-14 06:47:06 +0000 | [diff] [blame] | 168 | : ModulePass((intptr_t)&ID), BlocksToNotExtract(B) { |
| 169 | if (!BlockFile.empty()) |
| 170 | LoadFile(BlockFile.c_str()); |
| 171 | } |
Devang Patel | 794fd75 | 2007-05-01 21:15:47 +0000 | [diff] [blame] | 172 | BlockExtractorPass() : ModulePass((intptr_t)&ID) {} |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 173 | |
Chris Lattner | b12914b | 2004-09-20 04:48:05 +0000 | [diff] [blame] | 174 | bool runOnModule(Module &M); |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 175 | }; |
Devang Patel | 794fd75 | 2007-05-01 21:15:47 +0000 | [diff] [blame] | 176 | |
Devang Patel | 1997473 | 2007-05-03 01:11:54 +0000 | [diff] [blame] | 177 | char BlockExtractorPass::ID = 0; |
Chris Lattner | 7f8897f | 2006-08-27 22:42:52 +0000 | [diff] [blame] | 178 | RegisterPass<BlockExtractorPass> |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 179 | XX("extract-blocks", "Extract Basic Blocks From Module (for bugpoint use)"); |
| 180 | } |
| 181 | |
| 182 | // createBlockExtractorPass - This pass extracts all blocks (except those |
| 183 | // specified in the argument list) from the functions in the module. |
| 184 | // |
Gordon Henriksen | 4e1be6d | 2007-11-05 01:54:05 +0000 | [diff] [blame] | 185 | ModulePass *llvm::createBlockExtractorPass(const std::vector<BasicBlock*> &BTNE) |
| 186 | { |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 187 | return new BlockExtractorPass(BTNE); |
| 188 | } |
| 189 | |
Nick Lewycky | 6fa98b1 | 2007-11-14 06:47:06 +0000 | [diff] [blame] | 190 | void BlockExtractorPass::LoadFile(const char *Filename) { |
| 191 | // Load the BlockFile... |
| 192 | std::ifstream In(Filename); |
| 193 | if (!In.good()) { |
| 194 | cerr << "WARNING: BlockExtractor couldn't load file '" << Filename |
| 195 | << "'!\n"; |
| 196 | return; |
| 197 | } |
| 198 | while (In) { |
| 199 | std::string FunctionName, BlockName; |
| 200 | In >> FunctionName; |
| 201 | In >> BlockName; |
| 202 | if (!BlockName.empty()) |
| 203 | BlocksToNotExtractByName.push_back( |
| 204 | std::make_pair(FunctionName, BlockName)); |
| 205 | } |
| 206 | } |
| 207 | |
Chris Lattner | b12914b | 2004-09-20 04:48:05 +0000 | [diff] [blame] | 208 | bool BlockExtractorPass::runOnModule(Module &M) { |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 209 | std::set<BasicBlock*> TranslatedBlocksToNotExtract; |
| 210 | for (unsigned i = 0, e = BlocksToNotExtract.size(); i != e; ++i) { |
| 211 | BasicBlock *BB = BlocksToNotExtract[i]; |
| 212 | Function *F = BB->getParent(); |
| 213 | |
| 214 | // Map the corresponding function in this module. |
Reid Spencer | ef9b9a7 | 2007-02-05 20:47:22 +0000 | [diff] [blame] | 215 | Function *MF = M.getFunction(F->getName()); |
| 216 | assert(MF->getFunctionType() == F->getFunctionType() && "Wrong function?"); |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 217 | |
| 218 | // Figure out which index the basic block is in its function. |
| 219 | Function::iterator BBI = MF->begin(); |
| 220 | std::advance(BBI, std::distance(F->begin(), Function::iterator(BB))); |
| 221 | TranslatedBlocksToNotExtract.insert(BBI); |
| 222 | } |
| 223 | |
Nick Lewycky | 6fa98b1 | 2007-11-14 06:47:06 +0000 | [diff] [blame] | 224 | while (!BlocksToNotExtractByName.empty()) { |
| 225 | // There's no way to find BBs by name without looking at every BB inside |
| 226 | // every Function. Fortunately, this is always empty except when used by |
| 227 | // bugpoint in which case correctness is more important than performance. |
| 228 | |
| 229 | std::string &FuncName = BlocksToNotExtractByName.back().first; |
| 230 | std::string &BlockName = BlocksToNotExtractByName.back().second; |
| 231 | |
| 232 | for (Module::iterator FI = M.begin(), FE = M.end(); FI != FE; ++FI) { |
| 233 | Function &F = *FI; |
| 234 | if (F.getName() != FuncName) continue; |
| 235 | |
| 236 | for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE; ++BI) { |
| 237 | BasicBlock &BB = *BI; |
| 238 | if (BB.getName() != BlockName) continue; |
| 239 | |
| 240 | TranslatedBlocksToNotExtract.insert(BI); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | BlocksToNotExtractByName.pop_back(); |
| 245 | } |
| 246 | |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 247 | // Now that we know which blocks to not extract, figure out which ones we WANT |
| 248 | // to extract. |
| 249 | std::vector<BasicBlock*> BlocksToExtract; |
| 250 | for (Module::iterator F = M.begin(), E = M.end(); F != E; ++F) |
| 251 | for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) |
| 252 | if (!TranslatedBlocksToNotExtract.count(BB)) |
| 253 | BlocksToExtract.push_back(BB); |
| 254 | |
| 255 | for (unsigned i = 0, e = BlocksToExtract.size(); i != e; ++i) |
| 256 | ExtractBasicBlock(BlocksToExtract[i]); |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 257 | |
Chris Lattner | 8528672 | 2004-08-13 03:05:17 +0000 | [diff] [blame] | 258 | return !BlocksToExtract.empty(); |
| 259 | } |