Searched refs:LatchBR (Results 1 – 4 of 4) sorted by relevance
363 static void updateBranchWeights(BasicBlock *Header, BranchInst *LatchBR, in updateBranchWeights() argument376 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() local446 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() local580 unsigned HeaderIdx = (LatchBR->getSuccessor(0) == Header ? 0 : 1); in peelLoop()[all …]
336 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() local337 IRBuilder<> Builder(LatchBR); in CloneLoopBlocks()353 LatchBR->eraseFromParent(); in CloneLoopBlocks()547 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); in UnrollRuntimeLoopRemainder() local548 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() local862 B2.SetInsertPoint(LatchBR); in UnrollRuntimeLoopRemainder()869 if (LatchBR->getSuccessor(0) == Header) in UnrollRuntimeLoopRemainder()875 LatchBR->setCondition(IdxCmp); in UnrollRuntimeLoopRemainder()
1495 BranchInst *LatchBR = in getLoopEstimatedTripCount() local1497 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()
315 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() local316 IRBuilder<> Builder(LatchBR); in CloneLoopBlocks()332 LatchBR->eraseFromParent(); in CloneLoopBlocks()655 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); in UnrollRuntimeLoopRemainder() local656 B2.SetInsertPoint(LatchBR); in UnrollRuntimeLoopRemainder()663 if (LatchBR->getSuccessor(0) == Header) in UnrollRuntimeLoopRemainder()669 LatchBR->setCondition(IdxCmp); in UnrollRuntimeLoopRemainder()