Lines Matching refs:LatchBlock
1158 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in CreateWideIV() local
1160 cast<Instruction>(WidePhi->getIncomingValueForBlock(LatchBlock)); in CreateWideIV()
1351 BasicBlock *LatchBlock = L->getLoopLatch(); in getLoopTest() local
1353 if (!LatchBlock) in getLoopTest()
1445 static bool AlmostDeadIV(PHINode *Phi, BasicBlock *LatchBlock, Value *Cond) { in AlmostDeadIV() argument
1446 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in AlmostDeadIV()
1480 BasicBlock *LatchBlock = L->getLoopLatch(); in FindLoopCounter() local
1481 assert(LatchBlock && "needsLFTR should guarantee a loop latch"); in FindLoopCounter()
1508 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in FindLoopCounter()
1528 if (BestPhi && !AlmostDeadIV(BestPhi, LatchBlock, Cond)) { in FindLoopCounter()
1530 if (AlmostDeadIV(Phi, LatchBlock, Cond)) in FindLoopCounter()