Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUnrollRuntime.cpp389 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() local
390 IRBuilder<> Builder(LatchBR); in CloneLoopBlocks()
400 if (hasBranchWeightMD(*LatchBR)) { in CloneLoopBlocks()
421 LatchBR->eraseFromParent(); in CloneLoopBlocks()
602 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); in UnrollRuntimeLoopRemainder() local
604 if (!LatchBR || LatchBR->isUnconditional()) { in UnrollRuntimeLoopRemainder()
612 unsigned ExitIndex = LatchBR->getSuccessor(0) == Header ? 1 : 0; in UnrollRuntimeLoopRemainder()
613 BasicBlock *LatchExit = LatchBR->getSuccessor(ExitIndex); in UnrollRuntimeLoopRemainder()
937 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); in UnrollRuntimeLoopRemainder() local
940 B2.SetInsertPoint(LatchBR); in UnrollRuntimeLoopRemainder()
[all …]
H A DLoopPeel.cpp481 BranchInst *LatchBR = dyn_cast<BranchInst>(Latch->getTerminator()); in violatesLegacyMultiExitLoopCheck() local
482 if (!LatchBR || LatchBR->getNumSuccessors() != 2 || !L->isLoopExiting(Latch)) in violatesLegacyMultiExitLoopCheck()
485 assert((LatchBR->getSuccessor(0) == L->getHeader() || in violatesLegacyMultiExitLoopCheck()
486 LatchBR->getSuccessor(1) == L->getHeader()) && in violatesLegacyMultiExitLoopCheck()
H A DLoopUtils.cpp808 BranchInst *LatchBR = dyn_cast<BranchInst>(Latch->getTerminator()); in getExpectedExitLoopLatchBranch() local
809 if (!LatchBR || LatchBR->getNumSuccessors() != 2 || !L->isLoopExiting(Latch)) in getExpectedExitLoopLatchBranch()
812 assert((LatchBR->getSuccessor(0) == L->getHeader() || in getExpectedExitLoopLatchBranch()
813 LatchBR->getSuccessor(1) == L->getHeader()) && in getExpectedExitLoopLatchBranch()
816 return LatchBR; in getExpectedExitLoopLatchBranch()