Home
last modified time | relevance | path

Searched refs:Latch (Results 1 – 25 of 26) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp66 BasicBlock *Latch = L->getLoopLatch(); in ConnectProlog() local
67 assert(Latch && "Loop must have a latch"); in ConnectProlog()
68 BasicBlock *PrologLatch = cast<BasicBlock>(VMap[Latch]); in ConnectProlog()
75 for (BasicBlock *Succ : successors(Latch)) { in ConnectProlog()
94 Value *V = PN->getIncomingValueForBlock(Latch); in ConnectProlog()
156 BasicBlock *Latch = L->getLoopLatch(); in ConnectEpilog() local
157 assert(Latch && "Loop must have a latch"); in ConnectEpilog()
158 BasicBlock *EpilogLatch = cast<BasicBlock>(VMap[Latch]); in ConnectEpilog()
198 Value *V = PN->getIncomingValueForBlock(Latch); in ConnectEpilog()
222 for (BasicBlock *Succ : successors(Latch)) { in ConnectEpilog()
[all …]
DLoopUtils.cpp533 auto *Latch = TheLoop->getLoopLatch(); in isFirstOrderRecurrence() local
534 if (!Preheader || !Latch) in isFirstOrderRecurrence()
539 Phi->getBasicBlockIndex(Latch) < 0) in isFirstOrderRecurrence()
544 auto *Previous = dyn_cast<Instruction>(Phi->getIncomingValueForBlock(Latch)); in isFirstOrderRecurrence()
DLoopUnroll.cpp583 for (BasicBlock *Latch : Latches) { in UnrollLoop()
584 BranchInst *Term = cast<BranchInst>(Latch->getTerminator()); in UnrollLoop()
/external/llvm/lib/Transforms/Scalar/
DLoopRotation.cpp554 BasicBlock *Latch = L->getLoopLatch(); in simplifyLoopLatch() local
555 if (!Latch || Latch->hasAddressTaken()) in simplifyLoopLatch()
558 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); in simplifyLoopLatch()
562 BasicBlock *LastExit = Latch->getSinglePredecessor(); in simplifyLoopLatch()
570 if (!shouldSpeculateInstrs(Latch->begin(), Jmp->getIterator(), L)) in simplifyLoopLatch()
573 DEBUG(dbgs() << "Folding loop latch " << Latch->getName() << " into " in simplifyLoopLatch()
577 LastExit->getInstList().splice(BI->getIterator(), Latch->getInstList(), in simplifyLoopLatch()
578 Latch->begin(), Jmp->getIterator()); in simplifyLoopLatch()
580 unsigned FallThruPath = BI->getSuccessor(0) == Latch ? 0 : 1; in simplifyLoopLatch()
586 Latch->replaceSuccessorsPhiUsesWith(LastExit); in simplifyLoopLatch()
[all …]
DInductiveRangeCheckElimination.cpp414 BasicBlock *Latch; member
428 : Tag(""), Header(nullptr), Latch(nullptr), LatchBr(nullptr), in LoopStructure()
436 Result.Latch = cast<BasicBlock>(Map(Latch)); in map()
627 BasicBlock *Latch = L.getLoopLatch(); in parseLoopStructure() local
628 if (!L.isLoopExiting(Latch)) { in parseLoopStructure()
640 BranchInst *LatchBr = dyn_cast<BranchInst>(Latch->getTerminator()); in parseLoopStructure()
662 const SCEV *LatchCount = SE.getExitCount(&L, Latch); in parseLoopStructure()
814 Result.Latch = Latch; in parseLoopStructure()
1023 auto BBInsertLocation = std::next(Function::iterator(LS.Latch)); in changeIterationSpaceEnd()
1079 NewPHI->addIncoming(PN->getIncomingValueForBlock(LS.Latch), in changeIterationSpaceEnd()
[all …]
DLoopLoadElimination.cpp117 [&](const BasicBlock *Latch) { in doesStoreDominatesAllLatches() argument
118 return DT->dominates(StoreBlock, Latch); in doesStoreDominatesAllLatches()
DLoopUnswitch.cpp1273 BasicBlock *Latch = L->getLoopLatch(); in RewriteLoopBodyWithConditionConstant() local
1281 if (Latch && DT->dominates(SISucc, Latch)) in RewriteLoopBodyWithConditionConstant()
DLoopStrengthReduce.cpp1836 unsigned Entry, Latch; in OptimizeShadowIV() local
1839 Latch = 1; in OptimizeShadowIV()
1842 Latch = 0; in OptimizeShadowIV()
1852 dyn_cast<BinaryOperator>(PH->getIncomingValue(Latch)); in OptimizeShadowIV()
1884 NewPH->addIncoming(NewIncr, PH->getIncomingBlock(Latch)); in OptimizeShadowIV()
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp373 if (MachineBasicBlock *Latch = L->getLoopLatch()) { in getExitingBlock() local
374 if (L->isLoopExiting(Latch)) in getExitingBlock()
375 return Latch; in getExitingBlock()
389 MachineBasicBlock *Latch = L->getLoopLatch(); in findInductionRegister() local
391 if (!Header || !Preheader || !Latch || !ExitingBlock) in findInductionRegister()
415 if (Phi->getOperand(i+1).getMBB() != Latch) in findInductionRegister()
573 MachineBasicBlock *Latch = L->getLoopLatch(); in getLoopTripCount() local
578 else if (MBB == Latch) in getLoopTripCount()
595 if (ExitingBlock != Latch && (TB == Latch || FB == Latch)) { in getLoopTripCount()
598 bool NotAnalyzed = TII->analyzeBranch(*Latch, LTB, LFB, LCond, false); in getLoopTripCount()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DProfileEstimatorPass.cpp203 BasicBlock *Latch = BBLoop->getLoopLatch(); in recurseBasicBlock() local
204 if (Latch) { in recurseBasicBlock()
205 Edge edge = getEdge(Latch,0); in recurseBasicBlock()
208 edge = getEdge(Latch, BB); in recurseBasicBlock()
/external/honggfuzz/examples/apache-httpd/corpus_http2/
Dbd22d5afb6d4fa368658fd47e5e4025a.00000097.honggfuzz.cov5 If-None-Latch:oce:`ive
D7e6a863426c4faa68658fd56e442648a.00000097.honggfuzz.cov5 If-None-Latch:oce:`ive
D06faa68cf2dbf636bad73659cb77077e.00001f20.honggfuzz.cov5 If-None-Latch:oce:`ive
Ded9458ecb83df5d73feb51ea9fcbfd32.0000a629.honggfuzz.cov6 If-None-Latch:oce:`ive
/external/honggfuzz/examples/apache-httpd/corpus_http1/
D7e6a863426c4faa68658fd56e442648a.00000097.honggfuzz.cov5 If-None-Latch:oce:`ive
Dbd22d5afb6d4fa368658fd47e5e4025a.00000097.honggfuzz.cov5 If-None-Latch:oce:`ive
D06faa68cf2dbf636bad73659cb77077e.00001f20.honggfuzz.cov5 If-None-Latch:oce:`ive
Ded9458ecb83df5d73feb51ea9fcbfd32.0000a629.honggfuzz.cov6 If-None-Latch:oce:`ive
/external/llvm/include/llvm/Analysis/
DLoopInfoImpl.h163 BlockT *Latch = nullptr; in getLoopLatch() local
167 if (Latch) return nullptr; in getLoopLatch()
168 Latch = N; in getLoopLatch()
172 return Latch; in getLoopLatch()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DLoopInfo.h324 BlockT *Latch = 0; in getLoopLatch() local
328 if (Latch) return 0; in getLoopLatch()
329 Latch = N; in getLoopLatch()
333 return Latch; in getLoopLatch()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopUnswitch.cpp944 BasicBlock *Latch = L->getLoopLatch(); in RewriteLoopBodyWithConditionConstant() local
949 if (Latch && DT->dominates(SISucc, Latch)) in RewriteLoopBodyWithConditionConstant()
DLoopStrengthReduce.cpp1520 unsigned Entry, Latch; in OptimizeShadowIV() local
1523 Latch = 1; in OptimizeShadowIV()
1526 Latch = 0; in OptimizeShadowIV()
1536 dyn_cast<BinaryOperator>(PH->getIncomingValue(Latch)); in OptimizeShadowIV()
1568 NewPH->addIncoming(NewIncr, PH->getIncomingBlock(Latch)); in OptimizeShadowIV()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2729 BasicBlock *Latch = L->getLoopLatch(); in createInductionVariable() local
2732 if (!Latch) in createInductionVariable()
2733 Latch = Header; in createInductionVariable()
2739 Builder.SetInsertPoint(Latch->getTerminator()); in createInductionVariable()
2744 Induction->addIncoming(Next, Latch); in createInductionVariable()
2750 Latch->getTerminator()->eraseFromParent(); in createInductionVariable()
3570 BasicBlock *Latch = OrigLoop->getLoopLatch(); in vectorizeLoop() local
3571 Value *LoopVal = Phi->getIncomingValueForBlock(Latch); in vectorizeLoop()
3790 auto *Latch = OrigLoop->getLoopLatch(); in fixFirstOrderRecurrence() local
3794 auto *Previous = Phi->getIncomingValueForBlock(Latch); in fixFirstOrderRecurrence()
[all …]
/external/llvm/lib/Analysis/
DScalarEvolution.cpp5668 BasicBlock *Latch = L->getLoopLatch(); // may be NULL. in computeBackedgeTakenCount() local
5700 if (EL.Max != getCouldNotCompute() && Latch && in computeBackedgeTakenCount()
5701 DT.dominates(ExitBB, Latch)) { in computeBackedgeTakenCount()
6149 const BasicBlock *Latch = L->getLoopLatch(); in computeShiftCompareExitLimit() local
6150 if (!Latch) in computeShiftCompareExitLimit()
6212 Value *BEValue = PNOut->getIncomingValueForBlock(Latch); in computeShiftCompareExitLimit()
6467 BasicBlock *Latch = L->getLoopLatch(); in getConstantEvolutionLoopExitValue() local
6468 if (!Latch) in getConstantEvolutionLoopExitValue()
6474 auto *StartCST = getOtherIncomingValue(PHI, Latch); in getConstantEvolutionLoopExitValue()
6481 Value *BEValue = PN->getIncomingValueForBlock(Latch); in getConstantEvolutionLoopExitValue()
[all …]
DLoopAccessAnalysis.cpp1744 BasicBlock* Latch = TheLoop->getLoopLatch(); in blockNeedsPredication() local
1745 return !DT->dominates(BB, Latch); in blockNeedsPredication()

12