Lines Matching defs:Latch
726 auto *Latch = L->getLoopLatch();
727 assert(Latch && "multiple latches not yet supported");
741 if (auto *BI = dyn_cast<BranchInst>(Latch->getTerminator())) {
751 if (L->isLoopExiting(Latch)) {
760 Header->removePredecessor(Latch, true);
770 DTU.applyUpdates({{DominatorTree::Delete, Latch, Header}});
772 MSSAU->applyUpdates({{DominatorTree::Delete, Latch, Header}}, DT);
780 auto *BackedgeBB = SplitEdge(Latch, Header, &DT, &LI, MSSAU.get());
805 BasicBlock *Latch = L->getLoopLatch();
806 if (!Latch)
809 BranchInst *LatchBR = dyn_cast<BranchInst>(Latch->getTerminator());
810 if (!LatchBR || LatchBR->getNumSuccessors() != 2 || !L->isLoopExiting(Latch))