Searched refs:LatchTerm (Results 1 – 3 of 3) sorted by relevance
779 auto *LatchTerm = cast<Instruction>(NewLatch->getTerminator()); in cloneLoopBlocks() local780 for (unsigned idx = 0, e = LatchTerm->getNumSuccessors(); idx < e; ++idx) in cloneLoopBlocks()781 if (LatchTerm->getSuccessor(idx) == Header) { in cloneLoopBlocks()782 LatchTerm->setSuccessor(idx, InsertBot); in cloneLoopBlocks()970 Instruction *LatchTerm = in peelLoop() local1012 auto *LatchTermCopy = cast<Instruction>(VMap[LatchTerm]); in peelLoop()
755 Instruction *LatchTerm = BB->getTerminator(); in SplitEdge() local760 if ((isCriticalEdge(LatchTerm, SuccNum, Options.MergeIdenticalEdges))) { in SplitEdge()767 return SplitKnownCriticalEdge(LatchTerm, SuccNum, Options, BBName); in SplitEdge()
893 auto *LatchTerm = LatchBlock->getTerminator(); in isLoopProfitableToPredicate() local894 assert(LatchTerm->getNumSuccessors() == 2 && in isLoopProfitableToPredicate()897 LatchTerm->getSuccessor(0) == L->getHeader() ? 1 : 0; in isLoopProfitableToPredicate()905 auto *LatchExitBlock = LatchTerm->getSuccessor(LatchBrExitIdx); in isLoopProfitableToPredicate()906 if (isa<UnreachableInst>(LatchTerm) || in isLoopProfitableToPredicate()912 if (!hasValidBranchWeightMD(*LatchTerm)) in isLoopProfitableToPredicate()