Searched refs:SinglePred (Results 1 – 11 of 11) sorted by relevance
202 BasicBlock *SinglePred = BB->getSinglePredecessor(); in TEST() local203 if (!SinglePred || SinglePred == BB || BB->hasAddressTaken()) continue; in TEST()204 BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator()); in TEST()
635 if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { in ProcessBlock() local636 if (SinglePred->getTerminator()->getNumSuccessors() == 1 && in ProcessBlock()637 SinglePred != BB && !hasAddressTakenAndUsed(BB)) { in ProcessBlock()639 if (LoopHeaders.erase(SinglePred)) in ProcessBlock()644 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in ProcessBlock()645 LVI->eraseBlock(SinglePred); in ProcessBlock()
294 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in EliminateMostlyEmptyBlock() local295 if (SinglePred != DestBB) { in EliminateMostlyEmptyBlock()298 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in EliminateMostlyEmptyBlock()
1033 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local1034 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()1035 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
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()
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()
1563 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local1564 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()1565 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
985 if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { in ProcessBlock() local986 const TerminatorInst *TI = SinglePred->getTerminator(); in ProcessBlock()988 SinglePred != BB && !hasAddressTakenAndUsed(BB)) { in ProcessBlock()990 if (LoopHeaders.erase(SinglePred)) in ProcessBlock()993 LVI->eraseBlock(SinglePred); in ProcessBlock()
542 BasicBlock *SinglePred = BB->getSinglePredecessor(); in eliminateFallThrough() local545 if (!SinglePred || SinglePred == BB || BB->hasAddressTaken()) continue; in eliminateFallThrough()547 BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator()); in eliminateFallThrough()783 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in eliminateMostlyEmptyBlock() local784 if (SinglePred != DestBB) { in eliminateMostlyEmptyBlock()785 assert(SinglePred == BB && in eliminateMostlyEmptyBlock()791 LLVM_DEBUG(dbgs() << "AFTER:\n" << *SinglePred << "\n\n\n"); in eliminateMostlyEmptyBlock()
1867 MachineBasicBlock *SinglePred = in createIfBlock() local1869 const DebugLoc &DL = SinglePred in createIfBlock()1870 ? SinglePred->findDebugLoc(SinglePred->getFirstTerminator()) in createIfBlock()