Lines Matching defs:CommonExitBlock
276 BasicBlock *CommonExitBlock = nullptr;
282 if (!CommonExitBlock) {
283 CommonExitBlock = Succ;
286 if (CommonExitBlock != Succ)
295 return CommonExitBlock;
375 CodeExtractor::findOrCreateBlockForHoisting(BasicBlock *CommonExitBlock) {
377 assert(!Blocks.count(CommonExitBlock) &&
379 for (auto *Pred : predecessors(CommonExitBlock)) {
410 assert(!getFirstPHI(CommonExitBlock) && "Phi not expected");
414 CommonExitBlock->splitBasicBlock(CommonExitBlock->getFirstNonPHIIt());
417 llvm::make_early_inc_range(predecessors(CommonExitBlock))) {
420 Pred->getTerminator()->replaceUsesOfWith(CommonExitBlock, NewExitBlock);
423 Blocks.insert(CommonExitBlock);
424 return CommonExitBlock;