Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLoopUnroll.cpp145 BasicBlock *LatchBlock = L->getLoopLatch(); in UnrollLoop() local
146 if (!LatchBlock) { in UnrollLoop()
152 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollLoop()
232 Latches.push_back(LatchBlock); in UnrollLoop()
257 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop()
291 if (*BB == LatchBlock) in UnrollLoop()
312 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop()
319 assert(Latches.back() == LastValueMap[LatchBlock] && "bad last latch"); in UnrollLoop()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopUnrollPass.cpp154 BasicBlock *LatchBlock = L->getLoopLatch(); in runOnLoop() local
155 if (LatchBlock) { in runOnLoop()
156 TripCount = SE->getSmallConstantTripCount(L, LatchBlock); in runOnLoop()
157 TripMultiple = SE->getSmallConstantTripMultiple(L, LatchBlock); in runOnLoop()
DIndVarSimplify.cpp1139 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in CreateWideIV() local
1141 cast<Instruction>(WidePhi->getIncomingValueForBlock(LatchBlock)); in CreateWideIV()
1373 BasicBlock *LatchBlock = L->getLoopLatch(); in needsLFTR() local
1375 if (!LatchBlock) in needsLFTR()
1414 static bool AlmostDeadIV(PHINode *Phi, BasicBlock *LatchBlock, Value *Cond) { in AlmostDeadIV() argument
1415 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in AlmostDeadIV()
1453 BasicBlock *LatchBlock = L->getLoopLatch(); in FindLoopCounter() local
1454 assert(LatchBlock && "needsLFTR should guarantee a loop latch"); in FindLoopCounter()
1476 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in FindLoopCounter()
1483 if (BestPhi && !AlmostDeadIV(BestPhi, LatchBlock, Cond)) { in FindLoopCounter()
[all …]
DLoopStrengthReduce.cpp1760 BasicBlock *LatchBlock = L->getLoopLatch(); in OptimizeLoopTermCond() local
1796 if (!DT.dominates(ExitingBlock, LatchBlock)) in OptimizeLoopTermCond()
1801 if (LatchBlock != ExitingBlock) in OptimizeLoopTermCond()
/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.cpp1094 BasicBlock *LatchBlock = L->getLoopLatch(); in getAddRecExprPHILiterally() local
1095 if (LatchBlock) { in getAddRecExprPHILiterally()
1105 SE.DT.properlyDominates(LatchBlock, IVIncInsertLoop->getHeader()); in getAddRecExprPHILiterally()
1124 cast<Instruction>(PN->getIncomingValueForBlock(LatchBlock)); in getAddRecExprPHILiterally()
1320 BasicBlock *LatchBlock = L->getLoopLatch(); in expandAddRecExprLiterally() local
1321 assert(LatchBlock && "PostInc mode requires a unique loop latch!"); in expandAddRecExprLiterally()
1322 Result = PN->getIncomingValueForBlock(LatchBlock); in expandAddRecExprLiterally()
1824 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in replaceCongruentIVs() local
1826 OrigPhiRef->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
1828 dyn_cast<Instruction>(Phi->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
/external/swiftshader/third_party/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.cpp943 BasicBlock *LatchBlock = L->getLoopLatch(); in getAddRecExprPHILiterally() local
944 if (LatchBlock) { in getAddRecExprPHILiterally()
954 cast<Instruction>(PN->getIncomingValueForBlock(LatchBlock)); in getAddRecExprPHILiterally()
1120 BasicBlock *LatchBlock = L->getLoopLatch(); in expandAddRecExprLiterally() local
1121 assert(LatchBlock && "PostInc mode requires a unique loop latch!"); in expandAddRecExprLiterally()
1122 Result = PN->getIncomingValueForBlock(LatchBlock); in expandAddRecExprLiterally()
1543 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in replaceCongruentIVs() local
1545 cast<Instruction>(OrigPhiRef->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
1547 cast<Instruction>(Phi->getIncomingValueForBlock(LatchBlock)); in replaceCongruentIVs()
/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp214 BasicBlock *LatchBlock = L->getLoopLatch(); in UnrollLoop() local
215 if (!LatchBlock) { in UnrollLoop()
227 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); in UnrollLoop()
372 Latches.push_back(LatchBlock); in UnrollLoop()
428 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop()
459 if (*BB == LatchBlock) in UnrollLoop()
495 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop()
502 assert(Latches.back() == LastValueMap[LatchBlock] && "bad last latch"); in UnrollLoop()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1434 if (BasicBlock *LatchBlock = L->getLoopLatch()) { in createWideIV() local
1436 cast<Instruction>(WidePhi->getIncomingValueForBlock(LatchBlock)); in createWideIV()
1624 BasicBlock *LatchBlock = L->getLoopLatch(); in getLoopTest() local
1626 if (!LatchBlock) in getLoopTest()
1718 static bool AlmostDeadIV(PHINode *Phi, BasicBlock *LatchBlock, Value *Cond) { in AlmostDeadIV() argument
1719 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in AlmostDeadIV()
1753 BasicBlock *LatchBlock = L->getLoopLatch(); in FindLoopCounter() local
1754 assert(LatchBlock && "needsLFTR should guarantee a loop latch"); in FindLoopCounter()
1781 int LatchIdx = Phi->getBasicBlockIndex(LatchBlock); in FindLoopCounter()
1801 if (BestPhi && !AlmostDeadIV(BestPhi, LatchBlock, Cond)) { in FindLoopCounter()
[all …]
DLoopInterchange.cpp736 static BasicBlock *getLoopLatchExitBlock(BasicBlock *LatchBlock, in getLoopLatchExitBlock() argument
738 if (BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator())) { in getLoopLatchExitBlock()
DLoopStrengthReduce.cpp2071 BasicBlock *LatchBlock = L->getLoopLatch(); in OptimizeLoopTermCond() local
2106 if (!DT.dominates(ExitingBlock, LatchBlock)) in OptimizeLoopTermCond()
2111 if (LatchBlock != ExitingBlock) in OptimizeLoopTermCond()