Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp173 BasicBlock *LatchBlock = L->getLoopLatch(); in UnrollLoop() local
174 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()
/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.cpp1071 BasicBlock *LatchBlock = L->getLoopLatch(); in getAddRecExprPHILiterally() local
1072 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() local
1291 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() local
1746 cast<Instruction>(OrigPhiRef->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
1748 cast<Instruction>(Phi->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1158 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()
[all …]
DLoopStrengthReduce.cpp2104 BasicBlock *LatchBlock = L->getLoopLatch(); in OptimizeLoopTermCond() local
2140 if (!DT.dominates(ExitingBlock, LatchBlock)) in OptimizeLoopTermCond()
2145 if (LatchBlock != ExitingBlock) in OptimizeLoopTermCond()