Searched refs:LatchBlock (Results 1 – 5 of 5) sorted by relevance
173 BasicBlock *LatchBlock = L->getLoopLatch(); in UnrollLoop() local174 if (!LatchBlock) { in UnrollLoop()186 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollLoop()298 Latches.push_back(LatchBlock); in UnrollLoop()353 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop()385 if (*BB == LatchBlock) in UnrollLoop()406 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop()413 assert(Latches.back() == LastValueMap[LatchBlock] && "bad last latch"); in UnrollLoop()
34 BasicBlock *LatchBlock = L->getLoopLatch(); in IVUseShouldUsePostIncValue() local35 if (!LatchBlock) in IVUseShouldUsePostIncValue()40 if (DT->dominates(LatchBlock, User->getParent())) in IVUseShouldUsePostIncValue()55 !DT->dominates(LatchBlock, PN->getIncomingBlock(i))) in IVUseShouldUsePostIncValue()
1071 BasicBlock *LatchBlock = L->getLoopLatch(); in getAddRecExprPHILiterally() local1072 if (LatchBlock) { in getAddRecExprPHILiterally()1081 SE.DT->properlyDominates(LatchBlock, IVIncInsertLoop->getHeader()); in getAddRecExprPHILiterally()1100 cast<Instruction>(PN->getIncomingValueForBlock(LatchBlock)); in getAddRecExprPHILiterally()1290 BasicBlock *LatchBlock = L->getLoopLatch(); in expandAddRecExprLiterally() local1291 assert(LatchBlock && "PostInc mode requires a unique loop latch!"); in expandAddRecExprLiterally()1292 Result = PN->getIncomingValueForBlock(LatchBlock); in expandAddRecExprLiterally()1744 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in replaceCongruentIVs() local1746 cast<Instruction>(OrigPhiRef->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()1748 cast<Instruction>(Phi->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
1158 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in CreateWideIV() local1160 cast<Instruction>(WidePhi->getIncomingValueForBlock(LatchBlock)); in CreateWideIV()1351 BasicBlock *LatchBlock = L->getLoopLatch(); in getLoopTest() local1353 if (!LatchBlock) in getLoopTest()1445 static bool AlmostDeadIV(PHINode *Phi, BasicBlock *LatchBlock, Value *Cond) { in AlmostDeadIV() argument1446 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in AlmostDeadIV()1480 BasicBlock *LatchBlock = L->getLoopLatch(); in FindLoopCounter() local1481 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()[all …]
2104 BasicBlock *LatchBlock = L->getLoopLatch(); in OptimizeLoopTermCond() local2140 if (!DT.dominates(ExitingBlock, LatchBlock)) in OptimizeLoopTermCond()2145 if (LatchBlock != ExitingBlock) in OptimizeLoopTermCond()