Home
last modified time | relevance | path

Searched refs:Preheader (Results 1 – 15 of 15) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DInductiveRangeCheckElimination.cpp563 changeIterationSpaceEnd(const LoopStructure &LS, BasicBlock *Preheader,
656 BasicBlock *Preheader = L.getLoopPreheader(); in parseLoopStructure() local
657 if (!Preheader) { in parseLoopStructure()
788 IRBuilder<> B(&*Preheader->rbegin()); in parseLoopStructure()
810 IRBuilder<> B(&*Preheader->rbegin()); in parseLoopStructure()
826 const DataLayout &DL = Preheader->getModule()->getDataLayout(); in parseLoopStructure()
829 .expandCodeFor(IndVarStart, IndVarTy, &*Preheader->rbegin()); in parseLoopStructure()
968 const LoopStructure &LS, BasicBlock *Preheader, Value *ExitSubloopAt, in changeIterationSpaceEnd() argument
1051 BranchInst *PreheaderJump = cast<BranchInst>(&*Preheader->rbegin()); in changeIterationSpaceEnd()
1100 NewPHI->addIncoming(PN->getIncomingValueForBlock(Preheader), Preheader); in changeIterationSpaceEnd()
[all …]
DLICM.cpp76 static bool hoist(Instruction &I, BasicBlock *Preheader);
137 BasicBlock *Preheader; // The preheader block of the current loop... member
207 Preheader = L->getLoopPreheader(); in runOnLoop()
237 if (Preheader) in runOnLoop()
243 if (!DisablePromotion && (Preheader || L->hasDedicatedExits())) { in runOnLoop()
275 Preheader = nullptr; in runOnLoop()
625 static bool hoist(Instruction &I, BasicBlock *Preheader) { in hoist() argument
626 DEBUG(dbgs() << "LICM hoisting to " << Preheader->getName() << ": " in hoist()
629 I.moveBefore(Preheader->getTerminator()); in hoist()
795 BasicBlock * Preheader = CurLoop->getLoopPreheader(); in promoteLoopAccessesToScalars() local
[all …]
DLoopIdiomRecognize.cpp936 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStridedStore() local
937 IRBuilder<> Builder(Preheader->getTerminator()); in processLoopStridedStore()
949 Preheader->getTerminator()); in processLoopStridedStore()
975 Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator()); in processLoopStridedStore()
1033 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStoreOfLoopLoad() local
1034 IRBuilder<> Builder(Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
1035 const DataLayout &DL = Preheader->getModule()->getDataLayout(); in processLoopStoreOfLoopLoad()
1047 Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
1063 Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
1089 Expander.expandCodeFor(NumBytesS, IntPtrTy, Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
DLoopDeletion.cpp57 bool &Changed, BasicBlock *Preheader);
83 bool &Changed, BasicBlock *Preheader) { in isLoopDead() argument
105 if (!L->makeLoopInvariant(I, Changed, Preheader->getTerminator())) in isLoopDead()
DIndVarSimplify.cpp1745 BasicBlock *Preheader = L->getLoopPreheader(); in SinkUnusedInvariants() local
1746 if (!Preheader) return; in SinkUnusedInvariants()
1749 BasicBlock::iterator I = Preheader->getTerminator(); in SinkUnusedInvariants()
1750 while (I != Preheader->begin()) { in SinkUnusedInvariants()
1791 if (UseBB == Preheader || L->contains(UseBB)) { in SinkUnusedInvariants()
1805 if (I != Preheader->begin()) { in SinkUnusedInvariants()
1809 } while (isa<DbgInfoIntrinsic>(I) && I != Preheader->begin()); in SinkUnusedInvariants()
1811 if (isa<DbgInfoIntrinsic>(I) && I == Preheader->begin()) in SinkUnusedInvariants()
DLoopRerollPass.cpp1304 BasicBlock *Preheader = L->getLoopPreheader(); in replace() local
1305 if (!Preheader) in replace()
1306 Preheader = InsertPreheaderForLoop(L, Parent); in replace()
1309 Preheader->getTerminator()); in replace()
/external/llvm/lib/CodeGen/
DMachineLICM.cpp299 bool Hoist(MachineInstr *MI, MachineBasicBlock *Preheader);
511 MachineBasicBlock *Preheader = getCurPreheader(); in HoistRegionPostRA() local
512 if (!Preheader) in HoistRegionPostRA()
553 MachineBasicBlock::iterator TI = Preheader->getFirstTerminator(); in HoistRegionPostRA()
554 if (TI != Preheader->end()) { in HoistRegionPostRA()
628 MachineBasicBlock *Preheader = getCurPreheader(); in HoistPostRA() local
632 DEBUG(dbgs() << "Hoisting to BB#" << Preheader->getNumber() << " from BB#" in HoistPostRA()
637 Preheader->splice(Preheader->getFirstTerminator(), MBB, MI); in HoistPostRA()
710 MachineBasicBlock *Preheader = getCurPreheader(); in HoistOutOfLoop() local
711 if (!Preheader) in HoistOutOfLoop()
[all …]
/external/llvm/lib/Transforms/Utils/
DLoopSimplify.cpp255 static Loop *separateNestedLoop(Loop *L, BasicBlock *Preheader, in separateNestedLoop() argument
260 if (!Preheader) in separateNestedLoop()
361 static BasicBlock *insertUniqueBackedgeBlock(Loop *L, BasicBlock *Preheader, in insertUniqueBackedgeBlock() argument
371 if (!Preheader) in insertUniqueBackedgeBlock()
386 if (P != Preheader) BackedgeBlocks.push_back(P); in insertUniqueBackedgeBlock()
417 if (IBB == Preheader) { in insertUniqueBackedgeBlock()
547 BasicBlock *Preheader = L->getLoopPreheader(); in simplifyOneLoop() local
548 if (!Preheader) { in simplifyOneLoop()
549 Preheader = InsertPreheaderForLoop(L, PP); in simplifyOneLoop()
550 if (Preheader) { in simplifyOneLoop()
[all …]
DIntegerDivision.cpp226 BasicBlock *Preheader = BasicBlock::Create(Builder.getContext(), in generateUnsignedDivisionCode() local
276 Builder.CreateCondBr(SkipLoop, LoopExit, Preheader); in generateUnsignedDivisionCode()
282 Builder.SetInsertPoint(Preheader); in generateUnsignedDivisionCode()
345 Carry_1->addIncoming(Zero, Preheader); in generateUnsignedDivisionCode()
348 SR_3->addIncoming(SR_1, Preheader); in generateUnsignedDivisionCode()
351 R_1->addIncoming(Tmp3, Preheader); in generateUnsignedDivisionCode()
354 Q_2->addIncoming(Q, Preheader); in generateUnsignedDivisionCode()
DLoopUnrollRuntime.cpp147 BasicBlock *Preheader = L->getLoopPreheader(); in CloneLoopBlocks() local
212 VMap[I] = NewPHI->getIncomingValueForBlock(Preheader); in CloneLoopBlocks()
215 unsigned idx = NewPHI->getBasicBlockIndex(Preheader); in CloneLoopBlocks()
DLoopUnroll.cpp167 BasicBlock *Preheader = L->getLoopPreheader(); in UnrollLoop() local
168 if (!Preheader) { in UnrollLoop()
402 PN->replaceAllUsesWith(PN->getIncomingValueForBlock(Preheader)); in UnrollLoop()
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp518 BasicBlock *Preheader = L->getLoopPreheader(); in convertToCTRLoop() local
524 if (!Preheader || mightUseCTR(TT, Preheader)) in convertToCTRLoop()
525 Preheader = InsertPreheaderForLoop(L, this); in convertToCTRLoop()
526 if (!Preheader) in convertToCTRLoop()
529 DEBUG(dbgs() << "Preheader for exit count: " << Preheader->getName() << "\n"); in convertToCTRLoop()
535 SCEVExpander SCEVE(*SE, Preheader->getModule()->getDataLayout(), "loopcnt"); in convertToCTRLoop()
545 Preheader->getTerminator()); in convertToCTRLoop()
547 IRBuilder<> CountBuilder(Preheader->getTerminator()); in convertToCTRLoop()
548 Module *M = Preheader->getParent()->getParent(); in convertToCTRLoop()
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp320 MachineBasicBlock *Preheader = L->getLoopPreheader(); in findInductionRegister() local
322 if (!Header || !Preheader || !Latch) in findInductionRegister()
461 MachineBasicBlock *Preheader = L->getLoopPreheader(); in getLoopTripCount() local
467 if (MBB == Preheader) in getLoopTripCount()
1022 MachineBasicBlock *Preheader = L->getLoopPreheader(); in convertToHardwareLoop() local
1023 if (!Preheader) { in convertToHardwareLoop()
1024 Preheader = createPreheaderForLoop(L); in convertToHardwareLoop()
1025 if (!Preheader) in convertToHardwareLoop()
1029 MachineBasicBlock::iterator InsertPos = Preheader->getFirstTerminator(); in convertToHardwareLoop()
1044 if (!MDT->dominates(BBDef, Preheader)) in convertToHardwareLoop()
[all …]
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp187 BasicBlock *Preheader = L->getLoopPreheader(); in InsertBinop() local
188 if (!Preheader) break; in InsertBinop()
191 Builder.SetInsertPoint(Preheader, Preheader->getTerminator()); in InsertBinop()
520 BasicBlock *Preheader = L->getLoopPreheader(); in expandAddToGEP() local
521 if (!Preheader) break; in expandAddToGEP()
524 Builder.SetInsertPoint(Preheader, Preheader->getTerminator()); in expandAddToGEP()
551 BasicBlock *Preheader = L->getLoopPreheader(); in expandAddToGEP() local
552 if (!Preheader) break; in expandAddToGEP()
555 Builder.SetInsertPoint(Preheader, Preheader->getTerminator()); in expandAddToGEP()
1606 if (BasicBlock *Preheader = L->getLoopPreheader()) in expand() local
[all …]
DLoopInfo.cpp114 BasicBlock *Preheader = getLoopPreheader(); in makeLoopInvariant() local
116 if (!Preheader) in makeLoopInvariant()
118 InsertPt = Preheader->getTerminator(); in makeLoopInvariant()