Lines Matching refs:Latch
411 MachineBasicBlock *Latch = L->getLoopLatch(); in findInductionRegister() local
413 if (!Header || !Preheader || !Latch || !ExitingBlock) in findInductionRegister()
438 if (Phi->getOperand(i+1).getMBB() != Latch) in findInductionRegister()
609 MachineBasicBlock *Latch = L->getLoopLatch(); in getLoopTripCount() local
614 else if (MBB == Latch) in getLoopTripCount()
631 if (ExitingBlock != Latch && (TB == Latch || FB == Latch)) { in getLoopTripCount()
634 bool NotAnalyzed = TII->analyzeBranch(*Latch, LTB, LFB, LCond, false); in getLoopTripCount()
637 if (TB == Latch) in getLoopTripCount()
1593 MachineBasicBlock *Latch = L->getLoopLatch(); in fixupInductionVariable() local
1596 if (!(Header && Latch && ExitingBlock)) in fixupInductionVariable()
1619 if (Phi->getOperand(i+1).getMBB() != Latch) in fixupInductionVariable()
1649 if (ExitingBlock != Latch && (TB == Latch || FB == Latch)) { in fixupInductionVariable()
1652 bool NotAnalyzed = TII->analyzeBranch(*Latch, LTB, LFB, LCond, false); in fixupInductionVariable()
1658 if (TB == Latch) in fixupInductionVariable()
1839 MachineBasicBlock *Latch = L->getLoopLatch(); in createPreheaderForLoop() local
1849 if (!Latch || !ExitingBlock || Header->hasAddressTaken()) in createPreheaderForLoop()
1899 if (PredB == Latch) in createPreheaderForLoop()
1912 if (PredB != Latch) { in createPreheaderForLoop()
1933 if (MO.getMBB() != Latch) in createPreheaderForLoop()
1948 if (PB != Latch) { in createPreheaderForLoop()
1962 bool LatchNotAnalyzed = TII->analyzeBranch(*Latch, TB, FB, Tmp2, false); in createPreheaderForLoop()
1966 TII->insertBranch(*Latch, Header, nullptr, EmptyCond, DL); in createPreheaderForLoop()