Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp718 if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { in ProcessBlock() local
719 const TerminatorInst *TI = SinglePred->getTerminator(); in ProcessBlock()
721 SinglePred != BB && !hasAddressTakenAndUsed(BB)) { in ProcessBlock()
723 if (LoopHeaders.erase(SinglePred)) in ProcessBlock()
726 LVI->eraseBlock(SinglePred); in ProcessBlock()
DLoopUnswitch.cpp1309 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local
1310 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()
1311 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp327 BasicBlock *SinglePred = BB->getSinglePredecessor(); in eliminateFallThrough() local
330 if (!SinglePred || SinglePred == BB || BB->hasAddressTaken()) continue; in eliminateFallThrough()
332 BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator()); in eliminateFallThrough()
335 DEBUG(dbgs() << "To merge:\n"<< *SinglePred << "\n\n\n"); in eliminateFallThrough()
338 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in eliminateFallThrough()
473 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in eliminateMostlyEmptyBlock() local
474 if (SinglePred != DestBB) { in eliminateMostlyEmptyBlock()
477 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in eliminateMostlyEmptyBlock()