Searched refs:LatchTerm (Results 1 – 3 of 3) sorted by relevance
905 auto *LatchTerm = cast<BranchInst>(NewLatch->getTerminator()); in cloneLoopBlocks() local906 LatchTerm->setSuccessor(0, InsertBot); in cloneLoopBlocks()907 LatchTerm->setSuccessor(1, InsertBot); in cloneLoopBlocks()909 auto *LatchTerm = cast<Instruction>(NewLatch->getTerminator()); in cloneLoopBlocks() local913 for (unsigned idx = 0, e = LatchTerm->getNumSuccessors(); idx < e; ++idx) { in cloneLoopBlocks()914 if (LatchTerm->getSuccessor(idx) == Header) { in cloneLoopBlocks()915 LatchTerm->setSuccessor(idx, InsertBot); in cloneLoopBlocks()1191 Instruction *LatchTerm = in peelLoop() local1251 auto *LatchTermCopy = cast<Instruction>(VMap[LatchTerm]); in peelLoop()
631 Instruction *LatchTerm = BB->getTerminator(); in SplitEdge() local636 if ((isCriticalEdge(LatchTerm, SuccNum, Options.MergeIdenticalEdges))) { in SplitEdge()638 return SplitKnownCriticalEdge(LatchTerm, SuccNum, Options, BBName); in SplitEdge()
892 auto *LatchTerm = LatchBlock->getTerminator(); in isLoopProfitableToPredicate() local893 assert(LatchTerm->getNumSuccessors() == 2 && in isLoopProfitableToPredicate()896 LatchTerm->getSuccessor(0) == L->getHeader() ? 1 : 0; in isLoopProfitableToPredicate()904 auto *LatchExitBlock = LatchTerm->getSuccessor(LatchBrExitIdx); in isLoopProfitableToPredicate()905 if (isa<UnreachableInst>(LatchTerm) || in isLoopProfitableToPredicate()911 if (!hasValidBranchWeightMD(*LatchTerm)) in isLoopProfitableToPredicate()