Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DJumpThreading.cpp635 if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { in ProcessBlock() local
636 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()
DCodeGenPrepare.cpp294 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in EliminateMostlyEmptyBlock() local
295 if (SinglePred != DestBB) { in EliminateMostlyEmptyBlock()
298 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in EliminateMostlyEmptyBlock()
DLoopUnswitch.cpp1033 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local
1034 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()
1035 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp714 if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { in ProcessBlock() local
715 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()
DLoopUnswitch.cpp1364 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local
1365 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()
1366 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp343 BasicBlock *SinglePred = BB->getSinglePredecessor(); in eliminateFallThrough() local
346 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() local
507 if (SinglePred != DestBB) { in eliminateMostlyEmptyBlock()
510 bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock(); in eliminateMostlyEmptyBlock()