Lines Matching defs:Latch
727 auto *Latch = L->getLoopLatch();
728 assert(Latch && "multiple latches not yet supported");
742 if (auto *BI = dyn_cast<BranchInst>(Latch->getTerminator())) {
752 if (L->isLoopExiting(Latch)) {
761 Header->removePredecessor(Latch, true);
771 DTU.applyUpdates({{DominatorTree::Delete, Latch, Header}});
773 MSSAU->applyUpdates({{DominatorTree::Delete, Latch, Header}}, DT);
781 auto *BackedgeBB = SplitEdge(Latch, Header, &DT, &LI, MSSAU.get());
806 BasicBlock *Latch = L->getLoopLatch();
807 if (!Latch)
810 BranchInst *LatchBR = dyn_cast<BranchInst>(Latch->getTerminator());
811 if (!LatchBR || LatchBR->getNumSuccessors() != 2 || !L->isLoopExiting(Latch))