Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Scalar/
DInductiveRangeCheckElimination.cpp541 changeIterationSpaceEnd(const LoopStructure &LS, BasicBlock *Preheader,
634 BasicBlock *Preheader = L.getLoopPreheader(); in parseLoopStructure() local
635 if (!Preheader) { in parseLoopStructure()
766 IRBuilder<> B(Preheader->getTerminator()); in parseLoopStructure()
788 IRBuilder<> B(Preheader->getTerminator()); in parseLoopStructure()
804 const DataLayout &DL = Preheader->getModule()->getDataLayout(); in parseLoopStructure()
807 .expandCodeFor(IndVarStart, IndVarTy, Preheader->getTerminator()); in parseLoopStructure()
946 const LoopStructure &LS, BasicBlock *Preheader, Value *ExitSubloopAt, in changeIterationSpaceEnd() argument
1029 BranchInst *PreheaderJump = cast<BranchInst>(Preheader->getTerminator()); in changeIterationSpaceEnd()
1078 NewPHI->addIncoming(PN->getIncomingValueForBlock(Preheader), Preheader); in changeIterationSpaceEnd()
[all …]
DLICM.cpp225 BasicBlock *Preheader = L->getLoopPreheader(); in runOnLoop() local
244 if (Preheader) in runOnLoop()
250 if (!DisablePromotion && (Preheader || L->hasDedicatedExits())) { in runOnLoop()
721 auto *Preheader = CurLoop->getLoopPreheader(); in hoist() local
722 DEBUG(dbgs() << "LICM hoisting to " << Preheader->getName() << ": " << I in hoist()
737 I.moveBefore(Preheader->getTerminator()); in hoist()
863 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in promoteLoopAccessesToScalars() local
909 if (!HasDedicatedExits || !Preheader) in promoteLoopAccessesToScalars()
912 const DataLayout &MDL = Preheader->getModule()->getDataLayout(); in promoteLoopAccessesToScalars()
953 *Load, DT, CurLoop, SafetyInfo, Preheader->getTerminator()); in promoteLoopAccessesToScalars()
[all …]
DLoopIdiomRecognize.cpp762 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStridedStore() local
763 IRBuilder<> Builder(Preheader->getTerminator()); in processLoopStridedStore()
780 Expander.expandCodeFor(Start, DestInt8PtrTy, Preheader->getTerminator()); in processLoopStridedStore()
803 Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator()); in processLoopStridedStore()
868 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStoreOfLoopLoad() local
869 IRBuilder<> Builder(Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
887 StrStart, Builder.getInt8PtrTy(StrAS), Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
909 LdStart, Builder.getInt8PtrTy(LdAS), Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
933 Expander.expandCodeFor(NumBytesS, IntPtrTy, Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
DLoopVersioningLICM.cpp169 Preheader(nullptr), CurLoop(nullptr), CurAST(nullptr), in LoopVersioningLICM()
185 BasicBlock *Preheader; // The preheader block of the current loop. member
522 Preheader = L->getLoopPreheader(); in runOnLoop()
DLoopDeletion.cpp38 bool &Changed, BasicBlock *Preheader) { in isLoopDead() argument
65 if (!L->makeLoopInvariant(I, Changed, Preheader->getTerminator())) { in isLoopDead()
DIndVarSimplify.cpp741 BasicBlock *Preheader = L->getLoopPreheader(); in canLoopBeDeleted() local
743 if (!Preheader) in canLoopBeDeleted()
2017 BasicBlock *Preheader = L->getLoopPreheader(); in sinkUnusedInvariants() local
2018 if (!Preheader) return; in sinkUnusedInvariants()
2021 BasicBlock::iterator I(Preheader->getTerminator()); in sinkUnusedInvariants()
2022 while (I != Preheader->begin()) { in sinkUnusedInvariants()
2063 if (UseBB == Preheader || L->contains(UseBB)) { in sinkUnusedInvariants()
2077 if (I != Preheader->begin()) { in sinkUnusedInvariants()
2081 } while (isa<DbgInfoIntrinsic>(I) && I != Preheader->begin()); in sinkUnusedInvariants()
2083 if (isa<DbgInfoIntrinsic>(I) && I == Preheader->begin()) in sinkUnusedInvariants()
/external/llvm/lib/CodeGen/
DMachineLICM.cpp231 bool Hoist(MachineInstr *MI, MachineBasicBlock *Preheader);
439 MachineBasicBlock *Preheader = getCurPreheader(); in HoistRegionPostRA() local
440 if (!Preheader) in HoistRegionPostRA()
474 MachineBasicBlock::iterator TI = Preheader->getFirstTerminator(); in HoistRegionPostRA()
475 if (TI != Preheader->end()) { in HoistRegionPostRA()
542 MachineBasicBlock *Preheader = getCurPreheader(); in HoistPostRA() local
546 DEBUG(dbgs() << "Hoisting to BB#" << Preheader->getNumber() << " from BB#" in HoistPostRA()
551 Preheader->splice(Preheader->getFirstTerminator(), MBB, MI); in HoistPostRA()
623 MachineBasicBlock *Preheader = getCurPreheader(); in HoistOutOfLoop() local
624 if (!Preheader) in HoistOutOfLoop()
[all …]
/external/llvm/lib/Transforms/Utils/
DLoopSimplify.cpp249 static Loop *separateNestedLoop(Loop *L, BasicBlock *Preheader, in separateNestedLoop() argument
254 if (!Preheader) in separateNestedLoop()
352 static BasicBlock *insertUniqueBackedgeBlock(Loop *L, BasicBlock *Preheader, in insertUniqueBackedgeBlock() argument
361 if (!Preheader) in insertUniqueBackedgeBlock()
376 if (P != Preheader) BackedgeBlocks.push_back(P); in insertUniqueBackedgeBlock()
407 if (IBB == Preheader) { in insertUniqueBackedgeBlock()
525 BasicBlock *Preheader = L->getLoopPreheader(); in simplifyOneLoop() local
526 if (!Preheader) { in simplifyOneLoop()
527 Preheader = InsertPreheaderForLoop(L, DT, LI, PreserveLCSSA); in simplifyOneLoop()
528 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.cpp272 BasicBlock *Preheader, in CloneLoopBlocks() argument
342 unsigned idx = NewPHI->getBasicBlockIndex(Preheader); in CloneLoopBlocks()
346 VMap[&*I] = NewPHI->getIncomingValueForBlock(Preheader); in CloneLoopBlocks()
350 unsigned idx = NewPHI->getBasicBlockIndex(Preheader); in CloneLoopBlocks()
DLoopUnroll.cpp208 BasicBlock *Preheader = L->getLoopPreheader(); in UnrollLoop() local
209 if (!Preheader) { in UnrollLoop()
491 PN->replaceAllUsesWith(PN->getIncomingValueForBlock(Preheader)); in UnrollLoop()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLoopSimplify.cpp103 BasicBlock *InsertUniqueBackedgeBlock(Loop *L, BasicBlock *Preheader);
201 BasicBlock *Preheader = L->getLoopPreheader(); in ProcessLoop() local
202 if (!Preheader) { in ProcessLoop()
203 Preheader = InsertPreheaderForLoop(L); in ProcessLoop()
204 if (Preheader) { in ProcessLoop()
255 LoopLatch = InsertUniqueBackedgeBlock(L, Preheader); in ProcessLoop()
311 Preheader ? Preheader->getTerminator() : 0)) { in ProcessLoop()
632 LoopSimplify::InsertUniqueBackedgeBlock(Loop *L, BasicBlock *Preheader) { in InsertUniqueBackedgeBlock() argument
640 if (!Preheader) in InsertUniqueBackedgeBlock()
652 if (P != Preheader) BackedgeBlocks.push_back(P); in InsertUniqueBackedgeBlock()
[all …]
DLoopUnroll.cpp139 BasicBlock *Preheader = L->getLoopPreheader(); in UnrollLoop() local
140 if (!Preheader) { in UnrollLoop()
308 PN->replaceAllUsesWith(PN->getIncomingValueForBlock(Preheader)); in UnrollLoop()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DMachineLICM.cpp267 bool Hoist(MachineInstr *MI, MachineBasicBlock *Preheader);
558 MachineBasicBlock *Preheader = getCurPreheader(); in HoistPostRA() local
559 if (!Preheader) return; in HoistPostRA()
565 if (Preheader->getBasicBlock()) in HoistPostRA()
567 << Preheader->getName(); in HoistPostRA()
576 Preheader->splice(Preheader->getFirstTerminator(), MBB, MI); in HoistPostRA()
625 MachineBasicBlock *Preheader = getCurPreheader(); in HoistRegion() local
626 if (!Preheader) in HoistRegion()
633 InitRegPressure(Preheader); in HoistRegion()
644 if (!Hoist(MI, Preheader)) in HoistRegion()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp473 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStridedStore() local
474 IRBuilder<> Builder(Preheader->getTerminator()); in processLoopStridedStore()
485 Preheader->getTerminator()); in processLoopStridedStore()
511 Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator()); in processLoopStridedStore()
562 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStoreOfLoopLoad() local
563 IRBuilder<> Builder(Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
575 Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
591 Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
617 Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
DLICM.cpp101 BasicBlock *Preheader; // The preheader block of the current loop... member
217 Preheader = L->getLoopPreheader(); in runOnLoop()
242 if (Preheader) in runOnLoop()
247 if (!DisablePromotion && Preheader && L->hasDedicatedExits()) { in runOnLoop()
256 Preheader = 0; in runOnLoop()
564 DEBUG(dbgs() << "LICM hoisting to " << Preheader->getName() << ": " in hoist()
568 I.moveBefore(Preheader->getTerminator()); in hoist()
792 Preheader->getTerminator()); in PromoteAliasSet()
795 SSA.AddAvailableValue(Preheader, PreheaderLoad); in PromoteAliasSet()
DLoopDeletion.cpp41 bool &Changed, BasicBlock *Preheader);
80 bool &Changed, BasicBlock *Preheader) { in IsLoopDead() argument
102 if (!L->makeLoopInvariant(I, Changed, Preheader->getTerminator())) in IsLoopDead()
DIndVarSimplify.cpp1655 BasicBlock *Preheader = L->getLoopPreheader(); in SinkUnusedInvariants() local
1656 if (!Preheader) return; in SinkUnusedInvariants()
1659 BasicBlock::iterator I = Preheader->getTerminator(); in SinkUnusedInvariants()
1660 while (I != Preheader->begin()) { in SinkUnusedInvariants()
1701 if (UseBB == Preheader || L->contains(UseBB)) { in SinkUnusedInvariants()
1715 if (I != Preheader->begin()) { in SinkUnusedInvariants()
1719 } while (isa<DbgInfoIntrinsic>(I) && I != Preheader->begin()); in SinkUnusedInvariants()
1721 if (isa<DbgInfoIntrinsic>(I) && I == Preheader->begin()) in SinkUnusedInvariants()
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp566 BasicBlock *Preheader = L->getLoopPreheader(); in convertToCTRLoop() local
572 if (!Preheader || mightUseCTR(TT, Preheader)) in convertToCTRLoop()
573 Preheader = InsertPreheaderForLoop(L, DT, LI, PreserveLCSSA); in convertToCTRLoop()
574 if (!Preheader) in convertToCTRLoop()
577 DEBUG(dbgs() << "Preheader for exit count: " << Preheader->getName() << "\n"); in convertToCTRLoop()
583 SCEVExpander SCEVE(*SE, Preheader->getModule()->getDataLayout(), "loopcnt"); in convertToCTRLoop()
592 SCEVE.expandCodeFor(ExitCount, CountType, Preheader->getTerminator()); in convertToCTRLoop()
594 IRBuilder<> CountBuilder(Preheader->getTerminator()); in convertToCTRLoop()
595 Module *M = Preheader->getParent()->getParent(); in convertToCTRLoop()
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp388 MachineBasicBlock *Preheader = L->getLoopPreheader(); in findInductionRegister() local
391 if (!Header || !Preheader || !Latch || !ExitingBlock) in findInductionRegister()
569 MachineBasicBlock *Preheader = L->getLoopPreheader(); in getLoopTripCount() local
576 if (MBB == Preheader) in getLoopTripCount()
1156 MachineBasicBlock *Preheader = L->getLoopPreheader(); in convertToHardwareLoop() local
1157 if (!Preheader) { in convertToHardwareLoop()
1158 Preheader = createPreheaderForLoop(L); in convertToHardwareLoop()
1159 if (!Preheader) in convertToHardwareLoop()
1163 MachineBasicBlock::iterator InsertPos = Preheader->getFirstTerminator(); in convertToHardwareLoop()
1177 if (!MDT->dominates(BBDef, Preheader)) in convertToHardwareLoop()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolutionExpander.cpp159 BasicBlock *Preheader = L->getLoopPreheader(); in InsertBinop() local
160 if (!Preheader) break; in InsertBinop()
163 Builder.SetInsertPoint(Preheader, Preheader->getTerminator()); in InsertBinop()
529 BasicBlock *Preheader = L->getLoopPreheader(); in expandAddToGEP() local
530 if (!Preheader) break; in expandAddToGEP()
533 Builder.SetInsertPoint(Preheader, Preheader->getTerminator()); in expandAddToGEP()
565 BasicBlock *Preheader = L->getLoopPreheader(); in expandAddToGEP() local
566 if (!Preheader) break; in expandAddToGEP()
569 Builder.SetInsertPoint(Preheader, Preheader->getTerminator()); in expandAddToGEP()
1393 if (BasicBlock *Preheader = L->getLoopPreheader()) in expand() local
[all …]
DLoopInfo.cpp107 BasicBlock *Preheader = getLoopPreheader(); in makeLoopInvariant() local
109 if (!Preheader) in makeLoopInvariant()
111 InsertPt = Preheader->getTerminator(); in makeLoopInvariant()
/external/llvm/include/llvm/Transforms/Scalar/
DLoopDeletion.h34 BasicBlock *Preheader);
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp204 BasicBlock *Preheader = L->getLoopPreheader(); in InsertBinop() local
205 if (!Preheader) break; in InsertBinop()
208 Builder.SetInsertPoint(Preheader->getTerminator()); in InsertBinop()
531 BasicBlock *Preheader = L->getLoopPreheader(); in expandAddToGEP() local
532 if (!Preheader) break; in expandAddToGEP()
535 Builder.SetInsertPoint(Preheader->getTerminator()); in expandAddToGEP()
559 BasicBlock *Preheader = L->getLoopPreheader(); in expandAddToGEP() local
560 if (!Preheader) break; in expandAddToGEP()
563 Builder.SetInsertPoint(Preheader->getTerminator()); in expandAddToGEP()
1671 if (BasicBlock *Preheader = L->getLoopPreheader()) in expand() local
[all …]
DLoopInfo.cpp86 BasicBlock *Preheader = getLoopPreheader(); in makeLoopInvariant() local
88 if (!Preheader) in makeLoopInvariant()
90 InsertPt = Preheader->getTerminator(); in makeLoopInvariant()

12