Lines Matching defs:Latch
448 BasicBlock *Latch = nullptr;
450 // `Latch's terminator instruction is `LatchBr', and it's `LatchBrExitIdx'th
478 Result.Latch = cast<BasicBlock>(Map(Latch));
745 BasicBlock *Latch = L.getLoopLatch();
746 assert(Latch && "Simplified loops only have one latch!");
748 if (Latch->getTerminator()->getMetadata(ClonedLoopTag)) {
753 if (!L.isLoopExiting(Latch)) {
765 BranchInst *LatchBr = dyn_cast<BranchInst>(Latch->getTerminator());
789 const SCEV *LatchCount = SE.getExitCount(&L, Latch);
1024 Result.Latch = Latch;
1255 BasicBlock *BBInsertLocation = LS.Latch->getNextNode();
1317 NewPHI->addIncoming(PN.getIncomingValueForBlock(LS.Latch),
1328 // `LS.Latch'. The PHI nodes need to be updated to reflect that.
1329 LS.LatchExit->replacePhiUsesWith(LS.Latch, RRI.ExitSelector);
1389 LatchTakenCount = SE.getExitCount(&OriginalLoop, MainLoopStructure.Latch);