Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DLocal.cpp202 BasicBlock *SinglePred = BB->getSinglePredecessor(); in TEST() local
203 if (!SinglePred || SinglePred == BB || BB->hasAddressTaken()) continue; in TEST()
204 BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator()); in TEST()
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp1563 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local
1564 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()
1565 assert(SinglePred == Pred && "CFG broken"); in SimplifyCode()
DJumpThreading.cpp985 if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { in ProcessBlock() local
986 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp542 BasicBlock *SinglePred = BB->getSinglePredecessor(); in eliminateFallThrough() local
545 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() local
784 if (SinglePred != DestBB) { in eliminateMostlyEmptyBlock()
785 assert(SinglePred == BB && in eliminateMostlyEmptyBlock()
791 LLVM_DEBUG(dbgs() << "AFTER:\n" << *SinglePred << "\n\n\n"); in eliminateMostlyEmptyBlock()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUMachineCFGStructurizer.cpp1867 MachineBasicBlock *SinglePred = in createIfBlock() local
1869 const DebugLoc &DL = SinglePred in createIfBlock()
1870 ? SinglePred->findDebugLoc(SinglePred->getFirstTerminator()) in createIfBlock()