Home
last modified time | relevance | path

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

/freebsd-9-stable/contrib/llvm/lib/Transforms/Scalar/
DLoopRotation.cpp217 BasicBlock *Latch = L->getLoopLatch(); in simplifyLoopLatch() local
218 if (!Latch || Latch->hasAddressTaken()) in simplifyLoopLatch()
221 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); in simplifyLoopLatch()
225 BasicBlock *LastExit = Latch->getSinglePredecessor(); in simplifyLoopLatch()
233 if (!shouldSpeculateInstrs(Latch->begin(), Jmp)) in simplifyLoopLatch()
236 DEBUG(dbgs() << "Folding loop latch " << Latch->getName() << " into " in simplifyLoopLatch()
240 LastExit->getInstList().splice(BI, Latch->getInstList(), Latch->begin(), Jmp); in simplifyLoopLatch()
242 unsigned FallThruPath = BI->getSuccessor(0) == Latch ? 0 : 1; in simplifyLoopLatch()
248 Latch->replaceSuccessorsPhiUsesWith(LastExit); in simplifyLoopLatch()
252 assert(Latch->empty() && "unable to evacuate Latch"); in simplifyLoopLatch()
[all …]
DLoopUnswitch.cpp1033 BasicBlock *Latch = L->getLoopLatch(); in RewriteLoopBodyWithConditionConstant() local
1041 if (Latch && DT->dominates(SISucc, Latch)) in RewriteLoopBodyWithConditionConstant()
DLoopStrengthReduce.cpp1802 unsigned Entry, Latch; in OptimizeShadowIV() local
1805 Latch = 1; in OptimizeShadowIV()
1808 Latch = 0; in OptimizeShadowIV()
1818 dyn_cast<BinaryOperator>(PH->getIncomingValue(Latch)); in OptimizeShadowIV()
1850 NewPH->addIncoming(NewIncr, PH->getIncomingBlock(Latch)); in OptimizeShadowIV()
/freebsd-9-stable/contrib/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp60 BasicBlock *Latch = L->getLoopLatch(); in ConnectProlog() local
61 assert(Latch != 0 && "Loop must have a latch"); in ConnectProlog()
68 for (succ_iterator SBI = succ_begin(Latch), SBE = succ_end(Latch); in ConnectProlog()
85 Value *V = PN->getIncomingValueForBlock(Latch); in ConnectProlog()
148 BasicBlock *Latch = L->getLoopLatch(); in CloneLoopBlocks() local
177 unsigned idx = NewPHI->getBasicBlockIndex(Latch); in CloneLoopBlocks()
188 if (Latch == *BB) { in CloneLoopBlocks()
270 BasicBlock *Latch = L->getLoopLatch(); in UnrollRuntimeLoopProlog() local
324 LastLoopBB = cast<BasicBlock>(VMap[Latch]); in UnrollRuntimeLoopProlog()
/freebsd-9-stable/contrib/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp326 MachineBasicBlock *Latch = L->getLoopLatch(); in findInductionRegister() local
327 if (!Header || !Preheader || !Latch) in findInductionRegister()
351 if (Phi->getOperand(i+1).getMBB() != Latch) in findInductionRegister()
374 bool NotAnalyzed = TII->AnalyzeBranch(*Latch, TB, FB, Cond, false); in findInductionRegister()
455 MachineBasicBlock *Latch = L->getLoopLatch(); in getLoopTripCount() local
456 if (!Latch) in getLoopTripCount()
474 else if (MBB == Latch) in getLoopTripCount()
482 bool NotAnalyzed = TII->AnalyzeBranch(*Latch, TB, FB, Cond, false); in getLoopTripCount()
1247 MachineBasicBlock *Latch = L->getLoopLatch(); in fixupInductionVariable() local
1249 if (!Header || !Preheader || !Latch) in fixupInductionVariable()
[all …]
/freebsd-9-stable/contrib/llvm/include/llvm/Analysis/
DLoopInfoImpl.h161 BlockT *Latch = 0; in getLoopLatch() local
165 if (Latch) return 0; in getLoopLatch()
166 Latch = N; in getLoopLatch()
170 return Latch; in getLoopLatch()
/freebsd-9-stable/sys/arm/conf/
DCAMBRIA.hints54 # Octal LED Latch
/freebsd-9-stable/contrib/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2223 BasicBlock *Latch = OrigLoop->getLoopLatch(); in vectorizeLoop() local
2224 Value *LoopVal = RdxPhi->getIncomingValueForBlock(Latch); in vectorizeLoop()
2894 BasicBlock *Latch = TheLoop->getLoopLatch(); in canVectorize() local
2895 unsigned TC = SE->getSmallConstantTripCount(TheLoop, Latch); in canVectorize()
3132 BasicBlock *Latch = TheLoop->getLoopLatch(); in collectLoopUniforms() local
3135 Worklist.push_back(Latch->getTerminator()->getOperand(0)); in collectLoopUniforms()
4395 BasicBlock* Latch = TheLoop->getLoopLatch(); in blockNeedsPredication() local
4396 return !DT->dominates(BB, Latch); in blockNeedsPredication()
/freebsd-9-stable/contrib/llvm/lib/Analysis/
DScalarEvolution.cpp6104 BasicBlock *Latch = L->getLoopLatch(); in isLoopBackedgeGuardedByCond() local
6105 if (!Latch) in isLoopBackedgeGuardedByCond()
6109 dyn_cast<BranchInst>(Latch->getTerminator()); in isLoopBackedgeGuardedByCond()