Home
last modified time | relevance | path

Searched refs:SinglePred (Results 1 – 3 of 3) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp671 if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { in ProcessBlock() local
672 if (SinglePred->getTerminator()->getNumSuccessors() == 1 && in ProcessBlock()
673 SinglePred != BB && !hasAddressTakenAndUsed(BB)) { in ProcessBlock()
675 if (LoopHeaders.erase(SinglePred)) in ProcessBlock()
678 LVI->eraseBlock(SinglePred); in ProcessBlock()
DLoopUnswitch.cpp1122 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local
1123 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()
1124 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp321 BasicBlock *SinglePred = BB->getSinglePredecessor(); in EliminateFallThrough() local
324 if (!SinglePred || SinglePred == BB || BB->hasAddressTaken()) continue; in EliminateFallThrough()
326 BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator()); in EliminateFallThrough()
329 DEBUG(dbgs() << "To merge:\n"<< *SinglePred << "\n\n\n"); in EliminateFallThrough()
332 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in EliminateFallThrough()
468 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in EliminateMostlyEmptyBlock() local
469 if (SinglePred != DestBB) { in EliminateMostlyEmptyBlock()
472 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in EliminateMostlyEmptyBlock()