• Home
  • Raw
  • Download

Lines Matching refs:DestBB

112     bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
227 BasicBlock *DestBB = BI->getSuccessor(0); in EliminateMostlyEmptyBlocks() local
228 if (DestBB == BB) in EliminateMostlyEmptyBlocks()
231 if (!CanMergeBlocks(BB, DestBB)) in EliminateMostlyEmptyBlocks()
244 const BasicBlock *DestBB) const { in CanMergeBlocks()
253 if (User->getParent() != DestBB || !isa<PHINode>(User)) in CanMergeBlocks()
258 if (User->getParent() == DestBB) { in CanMergeBlocks()
273 const PHINode *DestBBPN = dyn_cast<PHINode>(DestBB->begin()); in CanMergeBlocks()
290 BBI = DestBB->begin(); in CanMergeBlocks()
314 BasicBlock *DestBB = BI->getSuccessor(0); in EliminateMostlyEmptyBlock() local
316 DEBUG(dbgs() << "MERGING MOSTLY EMPTY BLOCKS - BEFORE:\n" << *BB << *DestBB); in EliminateMostlyEmptyBlock()
320 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in EliminateMostlyEmptyBlock()
321 if (SinglePred != DestBB) { in EliminateMostlyEmptyBlock()
325 MergeBasicBlockIntoOnlyPred(DestBB, this); in EliminateMostlyEmptyBlock()
330 DEBUG(dbgs() << "AFTER:\n" << *DestBB << "\n\n\n"); in EliminateMostlyEmptyBlock()
338 for (BasicBlock::iterator BBI = DestBB->begin(); in EliminateMostlyEmptyBlock()
366 BB->replaceAllUsesWith(DestBB); in EliminateMostlyEmptyBlock()
369 BasicBlock *DestBBIDom = DT->getNode(DestBB)->getIDom()->getBlock(); in EliminateMostlyEmptyBlock()
371 DT->changeImmediateDominator(DestBB, NewIDom); in EliminateMostlyEmptyBlock()
375 PFI->replaceAllUses(BB, DestBB); in EliminateMostlyEmptyBlock()
376 PFI->removeEdge(ProfileInfo::getEdge(BB, DestBB)); in EliminateMostlyEmptyBlock()
381 DEBUG(dbgs() << "AFTER:\n" << *DestBB << "\n\n\n"); in EliminateMostlyEmptyBlock()