Home
last modified time | relevance | path

Searched refs:LatchTerm (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopPeel.cpp819 auto *LatchTerm = cast<Instruction>(NewLatch->getTerminator()); in cloneLoopBlocks() local
820 for (unsigned idx = 0, e = LatchTerm->getNumSuccessors(); idx < e; ++idx) in cloneLoopBlocks()
821 if (LatchTerm->getSuccessor(idx) == Header) { in cloneLoopBlocks()
822 LatchTerm->setSuccessor(idx, InsertBot); in cloneLoopBlocks()
1010 Instruction *LatchTerm = in peelLoop() local
1052 auto *LatchTermCopy = cast<Instruction>(VMap[LatchTerm]); in peelLoop()
H A DBasicBlockUtils.cpp766 Instruction *LatchTerm = BB->getTerminator(); in SplitEdge() local
771 if ((isCriticalEdge(LatchTerm, SuccNum, Options.MergeIdenticalEdges))) { in SplitEdge()
778 return SplitKnownCriticalEdge(LatchTerm, SuccNum, Options, BBName); in SplitEdge()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp893 auto *LatchTerm = LatchBlock->getTerminator(); in parseLoopLatchICmp()
894 assert(LatchTerm->getNumSuccessors() == 2 && in parseLoopLatchICmp()
897 LatchTerm->getSuccessor(0) == L->getHeader() ? 1 : 0; in parseLoopLatchICmp()
905 auto *LatchExitBlock = LatchTerm->getSuccessor(LatchBrExitIdx); in parseLoopLatchICmp()
906 if (isa<UnreachableInst>(LatchTerm) || in parseLoopLatchICmp()
912 if (!hasValidBranchWeightMD(*LatchTerm)) in parseLoopLatchICmp()
975 auto *LatchTerm = LatchBlock->getTerminator(); isLoopProfitableToPredicate() local