Searched refs:LatchTerm (Results 1 – 3 of 3) sorted by relevance
758 auto *LatchTerm = cast<Instruction>(NewLatch->getTerminator()); in cloneLoopBlocks() local759 for (unsigned idx = 0, e = LatchTerm->getNumSuccessors(); idx < e; ++idx) in cloneLoopBlocks()760 if (LatchTerm->getSuccessor(idx) == Header) { in cloneLoopBlocks()761 LatchTerm->setSuccessor(idx, InsertBot); in cloneLoopBlocks()949 Instruction *LatchTerm = in peelLoop() local991 auto *LatchTermCopy = cast<Instruction>(VMap[LatchTerm]); in peelLoop()
620 Instruction *LatchTerm = BB->getTerminator(); in SplitEdge() local625 if ((isCriticalEdge(LatchTerm, SuccNum, Options.MergeIdenticalEdges))) { in SplitEdge()632 return SplitKnownCriticalEdge(LatchTerm, SuccNum, Options, BBName); in SplitEdge()
961 auto *LatchTerm = LatchBlock->getTerminator(); in isLoopProfitableToPredicate() local962 assert(LatchTerm->getNumSuccessors() == 2 && in isLoopProfitableToPredicate()965 LatchTerm->getSuccessor(0) == L->getHeader() ? 1 : 0; in isLoopProfitableToPredicate()973 auto *LatchExitBlock = LatchTerm->getSuccessor(LatchBrExitIdx); in isLoopProfitableToPredicate()974 if (isa<UnreachableInst>(LatchTerm) || in isLoopProfitableToPredicate()980 if (!hasValidBranchWeightMD(*LatchTerm)) in isLoopProfitableToPredicate()