Home
last modified time | relevance | path

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

/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/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp1884 BasicBlock *SinglePred = BB->getSinglePredecessor(); in MaybeMergeBasicBlockIntoOnlyPred() local
1885 if (!SinglePred) in MaybeMergeBasicBlockIntoOnlyPred()
1888 const Instruction *TI = SinglePred->getTerminator(); in MaybeMergeBasicBlockIntoOnlyPred()
1890 SinglePred == BB || hasAddressTakenAndUsed(BB)) in MaybeMergeBasicBlockIntoOnlyPred()
1894 if (LoopHeaders.erase(SinglePred)) in MaybeMergeBasicBlockIntoOnlyPred()
1897 LVI->eraseBlock(SinglePred); in MaybeMergeBasicBlockIntoOnlyPred()
DLoopUnswitch.cpp1622 BasicBlock *SinglePred = Succ->getSinglePredecessor(); in SimplifyCode() local
1623 if (!SinglePred) continue; // Nothing to do. in SimplifyCode()
1624 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-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp587 BasicBlock *SinglePred = BB->getSinglePredecessor(); in eliminateFallThrough() local
590 if (!SinglePred || SinglePred == BB || BB->hasAddressTaken()) continue; in eliminateFallThrough()
592 BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator()); in eliminateFallThrough()
838 if (BasicBlock *SinglePred = DestBB->getSinglePredecessor()) { in eliminateMostlyEmptyBlock() local
839 if (SinglePred != DestBB) { in eliminateMostlyEmptyBlock()
840 assert(SinglePred == BB && in eliminateMostlyEmptyBlock()
846 LLVM_DEBUG(dbgs() << "AFTER:\n" << *SinglePred << "\n\n\n"); in eliminateMostlyEmptyBlock()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUMachineCFGStructurizer.cpp1869 MachineBasicBlock *SinglePred = in createIfBlock() local
1871 const DebugLoc &DL = SinglePred in createIfBlock()
1872 ? SinglePred->findDebugLoc(SinglePred->getFirstTerminator()) in createIfBlock()