Searched refs:LatchBR (Results 1 – 3 of 3) sorted by relevance
389 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() local390 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() local604 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() local940 B2.SetInsertPoint(LatchBR); in UnrollRuntimeLoopRemainder()[all …]
521 BranchInst *LatchBR = dyn_cast<BranchInst>(Latch->getTerminator()); in violatesLegacyMultiExitLoopCheck() local522 if (!LatchBR || LatchBR->getNumSuccessors() != 2 || !L->isLoopExiting(Latch)) in violatesLegacyMultiExitLoopCheck()525 assert((LatchBR->getSuccessor(0) == L->getHeader() || in violatesLegacyMultiExitLoopCheck()526 LatchBR->getSuccessor(1) == L->getHeader()) && in violatesLegacyMultiExitLoopCheck()
809 BranchInst *LatchBR = dyn_cast<BranchInst>(Latch->getTerminator()); in getExpectedExitLoopLatchBranch() local810 if (!LatchBR || LatchBR->getNumSuccessors() != 2 || !L->isLoopExiting(Latch)) in getExpectedExitLoopLatchBranch()813 assert((LatchBR->getSuccessor(0) == L->getHeader() || in getExpectedExitLoopLatchBranch()814 LatchBR->getSuccessor(1) == L->getHeader()) && in getExpectedExitLoopLatchBranch()817 return LatchBR; in getExpectedExitLoopLatchBranch()