Searched refs:LatchBR (Results 1 - 3 of 3) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUnrollPeel.cpp421 /// \param LatchBR The copy of the latch branch that belongs to this iteration.
424 static void updateBranchWeights(BasicBlock *Header, BranchInst *LatchBR,
432 unsigned HeaderIdx = (LatchBR->getSuccessor(0) == Header ? 0 : 1);
433 MDBuilder MDB(LatchBR->getContext());
437 LatchBR->setMetadata(LLVMContext::MD_prof, WeightNode);
445 /// \param LatchBR The latch branch.
448 static void initBranchWeights(BasicBlock *Header, BranchInst *LatchBR,
452 if (!LatchBR->extractProfMetadata(TrueWeight, FalseWeight))
454 unsigned HeaderIdx = LatchBR->getSuccessor(0) == Header ? 0 : 1;
462 /// \param LatchBR Th
[all...]
H A DLoopUnrollRuntime.cpp353 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); local
354 IRBuilder<> Builder(LatchBR);
370 LatchBR->eraseFromParent();
566 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); local
568 if (!LatchBR || LatchBR->isUnconditional()) {
576 unsigned ExitIndex = LatchBR->getSuccessor(0) == Header ? 1 : 0;
577 BasicBlock *LatchExit = LatchBR->getSuccessor(ExitIndex);
896 BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator()); local
897 B2.SetInsertPoint(LatchBR);
[all...]
H A DLoopUtils.cpp737 BranchInst *LatchBR = dyn_cast<BranchInst>(Latch->getTerminator());
738 if (!LatchBR || LatchBR->getNumSuccessors() != 2 || !L->isLoopExiting(Latch))
741 assert((LatchBR->getSuccessor(0) == L->getHeader() ||
742 LatchBR->getSuccessor(1) == L->getHeader()) &&
752 return LatchBR;

Completed in 121 milliseconds