Home
last modified time | relevance | path

Searched refs:LatchBlock (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp169 BasicBlock *LatchBlock = L->getLoopLatch(); in UnrollLoop() local
170 if (!LatchBlock) { in UnrollLoop()
182 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollLoop()
299 Latches.push_back(LatchBlock); in UnrollLoop()
354 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop()
386 if (*BB == LatchBlock) in UnrollLoop()
407 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop()
414 assert(Latches.back() == LastValueMap[LatchBlock] && "bad last latch"); in UnrollLoop()
/external/llvm/lib/Analysis/
DScalarEvolutionNormalization.cpp34 BasicBlock *LatchBlock = L->getLoopLatch(); in IVUseShouldUsePostIncValue() local
35 if (!LatchBlock) in IVUseShouldUsePostIncValue()
40 if (DT->dominates(LatchBlock, User->getParent())) in IVUseShouldUsePostIncValue()
55 !DT->dominates(LatchBlock, PN->getIncomingBlock(i))) in IVUseShouldUsePostIncValue()
DScalarEvolutionExpander.cpp1079 BasicBlock *LatchBlock = L->getLoopLatch(); in getAddRecExprPHILiterally() local
1080 if (LatchBlock) { in getAddRecExprPHILiterally()
1090 SE.DT.properlyDominates(LatchBlock, IVIncInsertLoop->getHeader()); in getAddRecExprPHILiterally()
1109 cast<Instruction>(PN->getIncomingValueForBlock(LatchBlock)); in getAddRecExprPHILiterally()
1298 BasicBlock *LatchBlock = L->getLoopLatch(); in expandAddRecExprLiterally() local
1299 assert(LatchBlock && "PostInc mode requires a unique loop latch!"); in expandAddRecExprLiterally()
1300 Result = PN->getIncomingValueForBlock(LatchBlock); in expandAddRecExprLiterally()
1761 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in replaceCongruentIVs() local
1763 cast<Instruction>(OrigPhiRef->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
1765 cast<Instruction>(Phi->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1409 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in createWideIV() local
1411 cast<Instruction>(WidePhi->getIncomingValueForBlock(LatchBlock)); in createWideIV()
1601 BasicBlock *LatchBlock = L->getLoopLatch(); in getLoopTest() local
1603 if (!LatchBlock) in getLoopTest()
1695 static bool AlmostDeadIV(PHINode *Phi, BasicBlock *LatchBlock, Value *Cond) { in AlmostDeadIV() argument
1696 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in AlmostDeadIV()
1730 BasicBlock *LatchBlock = L->getLoopLatch(); in FindLoopCounter() local
1731 assert(LatchBlock && "needsLFTR should guarantee a loop latch"); in FindLoopCounter()
1758 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in FindLoopCounter()
1778 if (BestPhi && !AlmostDeadIV(BestPhi, LatchBlock, Cond)) { in FindLoopCounter()
[all …]
DLoopInterchange.cpp738 static BasicBlock *getLoopLatchExitBlock(BasicBlock *LatchBlock, in getLoopLatchExitBlock() argument
740 if (BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator())) { in getLoopLatchExitBlock()
DLoopStrengthReduce.cpp2087 BasicBlock *LatchBlock = L->getLoopLatch(); in OptimizeLoopTermCond() local
2122 if (!DT.dominates(ExitingBlock, LatchBlock)) in OptimizeLoopTermCond()
2127 if (LatchBlock != ExitingBlock) in OptimizeLoopTermCond()