Home
last modified time | relevance | path

Searched refs:LatchBR (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLoopUnrollPeel.cpp363 static void updateBranchWeights(BasicBlock *Header, BranchInst *LatchBR, in updateBranchWeights() argument
376 unsigned HeaderIdx = (LatchBR->getSuccessor(0) == Header ? 0 : 1); in updateBranchWeights()
377 MDBuilder MDB(LatchBR->getContext()); in updateBranchWeights()
381 LatchBR->setMetadata(LLVMContext::MD_prof, WeightNode); in updateBranchWeights()
445 BranchInst *LatchBR = cast<BranchInst>(NewLatch->getTerminator()); in cloneLoopBlocks() local
446 unsigned HeaderIdx = (LatchBR->getSuccessor(0) == Header ? 0 : 1); in cloneLoopBlocks()
447 LatchBR->setSuccessor(HeaderIdx, InsertBot); in cloneLoopBlocks()
448 LatchBR->setSuccessor(1 - HeaderIdx, Exit); in cloneLoopBlocks()
578 BranchInst *LatchBR = in peelLoop() local
580 unsigned HeaderIdx = (LatchBR->getSuccessor(0) == Header ? 0 : 1); in peelLoop()
[all …]
DLoopUnrollRuntime.cpp336 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() local
337 IRBuilder<> Builder(LatchBR); in CloneLoopBlocks()
353 LatchBR->eraseFromParent(); in CloneLoopBlocks()
547 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); in UnrollRuntimeLoopRemainder() local
548 unsigned ExitIndex = LatchBR->getSuccessor(0) == Header ? 1 : 0; in UnrollRuntimeLoopRemainder()
549 BasicBlock *LatchExit = LatchBR->getSuccessor(ExitIndex); in UnrollRuntimeLoopRemainder()
861 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); in UnrollRuntimeLoopRemainder() local
862 B2.SetInsertPoint(LatchBR); in UnrollRuntimeLoopRemainder()
869 if (LatchBR->getSuccessor(0) == Header) in UnrollRuntimeLoopRemainder()
875 LatchBR->setCondition(IdxCmp); in UnrollRuntimeLoopRemainder()
DLoopUtils.cpp1495 BranchInst *LatchBR = in getLoopEstimatedTripCount() local
1497 if (!LatchBR || LatchBR->getNumSuccessors() != 2) in getLoopEstimatedTripCount()
1500 assert((LatchBR->getSuccessor(0) == L->getHeader() || in getLoopEstimatedTripCount()
1501 LatchBR->getSuccessor(1) == L->getHeader()) && in getLoopEstimatedTripCount()
1508 if (!LatchBR->extractProfMetadata(TrueVal, FalseVal)) in getLoopEstimatedTripCount()
1516 if (LatchBR->getSuccessor(0) == L->getHeader()) in getLoopEstimatedTripCount()
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp315 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() local
316 IRBuilder<> Builder(LatchBR); in CloneLoopBlocks()
332 LatchBR->eraseFromParent(); in CloneLoopBlocks()
655 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); in UnrollRuntimeLoopRemainder() local
656 B2.SetInsertPoint(LatchBR); in UnrollRuntimeLoopRemainder()
663 if (LatchBR->getSuccessor(0) == Header) in UnrollRuntimeLoopRemainder()
669 LatchBR->setCondition(IdxCmp); in UnrollRuntimeLoopRemainder()