Searched refs:SinglePred (Results 1 – 7 of 7) sorted by relevance
714 if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { in ProcessBlock() local715 const TerminatorInst *TI = SinglePred->getTerminator(); in ProcessBlock()717 SinglePred != BB && !hasAddressTakenAndUsed(BB)) { in ProcessBlock()719 if (LoopHeaders.erase(SinglePred)) in ProcessBlock()722 LVI->eraseBlock(SinglePred); in ProcessBlock()
1364 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local1365 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()1366 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
1884 BasicBlock *SinglePred = BB->getSinglePredecessor(); in MaybeMergeBasicBlockIntoOnlyPred() local1885 if (!SinglePred) in MaybeMergeBasicBlockIntoOnlyPred()1888 const Instruction *TI = SinglePred->getTerminator(); in MaybeMergeBasicBlockIntoOnlyPred()1890 SinglePred == BB || hasAddressTakenAndUsed(BB)) in MaybeMergeBasicBlockIntoOnlyPred()1894 if (LoopHeaders.erase(SinglePred)) in MaybeMergeBasicBlockIntoOnlyPred()1897 LVI->eraseBlock(SinglePred); in MaybeMergeBasicBlockIntoOnlyPred()
1622 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local1623 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()1624 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
343 BasicBlock *SinglePred = BB->getSinglePredecessor(); in eliminateFallThrough() local346 if (!SinglePred || SinglePred == BB || BB->hasAddressTaken()) continue; in eliminateFallThrough()348 BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator()); in eliminateFallThrough()351 DEBUG(dbgs() << "To merge:\n"<< *SinglePred << "\n\n\n"); in eliminateFallThrough()354 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in eliminateFallThrough()506 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in eliminateMostlyEmptyBlock() local507 if (SinglePred != DestBB) { in eliminateMostlyEmptyBlock()510 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in eliminateMostlyEmptyBlock()
587 BasicBlock *SinglePred = BB->getSinglePredecessor(); in eliminateFallThrough() local590 if (!SinglePred || SinglePred == BB || BB->hasAddressTaken()) continue; in eliminateFallThrough()592 BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator()); in eliminateFallThrough()838 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in eliminateMostlyEmptyBlock() local839 if (SinglePred != DestBB) { in eliminateMostlyEmptyBlock()840 assert(SinglePred == BB && in eliminateMostlyEmptyBlock()846 LLVM_DEBUG(dbgs() << "AFTER:\n" << *SinglePred << "\n\n\n"); in eliminateMostlyEmptyBlock()
1869 MachineBasicBlock *SinglePred = in createIfBlock() local1871 const DebugLoc &DL = SinglePred in createIfBlock()1872 ? SinglePred->findDebugLoc(SinglePred->getFirstTerminator()) in createIfBlock()