/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopVersioningLICM.cpp | 180 CurLoop = nullptr; in reset() 211 Loop *CurLoop = nullptr; member 248 if (!CurLoop->isLoopSimplifyForm()) { in legalLoopStructure() 253 if (!CurLoop->getSubLoops().empty()) { in legalLoopStructure() 258 if (CurLoop->getNumBackEdges() != 1) { in legalLoopStructure() 263 if (!CurLoop->getExitingBlock()) { in legalLoopStructure() 270 if (CurLoop->getExitingBlock() != CurLoop->getLoopLatch()) { in legalLoopStructure() 276 if (CurLoop->isAnnotatedParallel()) { in legalLoopStructure() 281 if (CurLoop->getLoopDepth() > LoopDepthThreshold) { in legalLoopStructure() 287 const SCEV *ExitCount = SE->getBackedgeTakenCount(CurLoop); in legalLoopStructure() [all …]
|
D | LICM.cpp | 92 static bool inSubLoop(BasicBlock *BB, Loop *CurLoop, LoopInfo *LI); 93 static bool isNotUsedOrFreeInLoop(const Instruction &I, const Loop *CurLoop, 96 static bool hoist(Instruction &I, const DominatorTree *DT, const Loop *CurLoop, 100 const Loop *CurLoop, LoopSafetyInfo *SafetyInfo, 104 const Loop *CurLoop, 371 TargetTransformInfo *TTI, Loop *CurLoop, in sinkRegion() argument 377 CurLoop != nullptr && CurAST != nullptr && SafetyInfo != nullptr && in sinkRegion() 383 SmallVector<DomTreeNode *, 16> Worklist = collectChildrenInLoop(N, CurLoop); in sinkRegion() 390 if (inSubLoop(BB, CurLoop, LI)) in sinkRegion() 414 if (isNotUsedOrFreeInLoop(I, CurLoop, SafetyInfo, TTI, FreeInLoop) && in sinkRegion() [all …]
|
D | LoopIdiomRecognize.cpp | 115 Loop *CurLoop = nullptr; member in __anon08b6255f0111::LoopIdiomRecognize 273 CurLoop = L; in runOnLoop() 300 const SCEV *BECount = SE->getBackedgeTakenCount(CurLoop); in runOnCountableLoop() 312 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop() 315 << CurLoop->getHeader()->getParent()->getName() in runOnCountableLoop() 316 << "] Loop %" << CurLoop->getHeader()->getName() << "\n"); in runOnCountableLoop() 323 computeLoopSafetyInfo(&SafetyInfo, CurLoop); in runOnCountableLoop() 328 for (auto *BB : CurLoop->getBlocks()) { in runOnCountableLoop() 330 if (LI->getLoopFor(BB) != CurLoop) in runOnCountableLoop() 415 if (!StoreEv || StoreEv->getLoop() != CurLoop || !StoreEv->isAffine()) in isLegalStore() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LICM.cpp | 83 static bool inSubLoop(BasicBlock *BB, Loop *CurLoop, LoopInfo *LI); 84 static bool isNotUsedInLoop(const Instruction &I, const Loop *CurLoop, 86 static bool hoist(Instruction &I, const DominatorTree *DT, const Loop *CurLoop, 89 const Loop *CurLoop, AliasSetTracker *CurAST, 93 const Loop *CurLoop, 105 Loop *CurLoop, AliasSetTracker *CurAST, 296 DominatorTree *DT, TargetLibraryInfo *TLI, Loop *CurLoop, in sinkRegion() argument 301 CurLoop != nullptr && CurAST != nullptr && SafetyInfo != nullptr && in sinkRegion() 306 if (!CurLoop->contains(BB)) in sinkRegion() 313 Changed |= sinkRegion(Child, AA, LI, DT, TLI, CurLoop, CurAST, SafetyInfo); in sinkRegion() [all …]
|
D | LoopVersioningLICM.cpp | 169 Preheader(nullptr), CurLoop(nullptr), CurAST(nullptr), in LoopVersioningLICM() 186 Loop *CurLoop; // The current loop we are working on. member 210 if (!CurLoop->getLoopPreheader()) { in legalLoopStructure() 215 if (CurLoop->getSubLoops().size()) { in legalLoopStructure() 220 if (CurLoop->getNumBackEdges() != 1) { in legalLoopStructure() 225 if (!CurLoop->getExitingBlock()) { in legalLoopStructure() 232 if (CurLoop->getExitingBlock() != CurLoop->getLoopLatch()) { in legalLoopStructure() 238 if (CurLoop->isAnnotatedParallel()) { in legalLoopStructure() 243 if (CurLoop->getLoopDepth() > LoopDepthThreshold) { in legalLoopStructure() 248 if (!CurLoop->hasDedicatedExits()) { in legalLoopStructure() [all …]
|
D | LoopIdiomRecognize.cpp | 71 Loop *CurLoop; member in __anon259313270111::LoopIdiomRecognize 86 : CurLoop(nullptr), AA(AA), DT(DT), LI(LI), SE(SE), TLI(TLI), TTI(TTI), in LoopIdiomRecognize() 221 CurLoop = L; in runOnLoop() 244 const SCEV *BECount = SE->getBackedgeTakenCount(CurLoop); in runOnCountableLoop() 256 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop() 259 << CurLoop->getHeader()->getParent()->getName() << "] Loop %" in runOnCountableLoop() 260 << CurLoop->getHeader()->getName() << "\n"); in runOnCountableLoop() 267 computeLoopSafetyInfo(&SafetyInfo, CurLoop); in runOnCountableLoop() 272 for (auto *BB : CurLoop->getBlocks()) { in runOnCountableLoop() 274 if (LI->getLoopFor(BB) != CurLoop) in runOnCountableLoop() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | MustExecute.cpp | 28 void llvm::computeLoopSafetyInfo(LoopSafetyInfo *SafetyInfo, Loop *CurLoop) { in computeLoopSafetyInfo() argument 29 assert(CurLoop != nullptr && "CurLoop can't be null"); in computeLoopSafetyInfo() 30 BasicBlock *Header = CurLoop->getHeader(); in computeLoopSafetyInfo() 42 assert(Header == *CurLoop->getBlocks().begin() && in computeLoopSafetyInfo() 44 for (Loop::block_iterator BB = std::next(CurLoop->block_begin()), in computeLoopSafetyInfo() 45 BBE = CurLoop->block_end(); in computeLoopSafetyInfo() 52 Function *Fn = CurLoop->getHeader()->getParent(); in computeLoopSafetyInfo() 64 const Loop *CurLoop) { in CanProveNotTakenFirstIteration() argument 69 assert(CurLoop->contains(CondExitBlock) && "meaning of exit block"); in CanProveNotTakenFirstIteration() 85 if (!LHS || LHS->getParent() != CurLoop->getHeader()) in CanProveNotTakenFirstIteration() [all …]
|
D | DependenceAnalysis.cpp | 356 const Loop *CurLoop) { in setPoint() argument 360 AssociatedLoop = CurLoop; in setPoint() 364 const SCEV *CC, const Loop *CurLoop) { in setLine() argument 369 AssociatedLoop = CurLoop; in setLine() 373 const Loop *CurLoop) { in setDistance() argument 378 AssociatedLoop = CurLoop; in setDistance() 1133 const SCEV *DstConst, const Loop *CurLoop, in strongSIVtest() argument 1152 if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) { in strongSIVtest() 1185 NewConstraint.setDistance(SE->getConstant(Distance), CurLoop); in strongSIVtest() 1197 NewConstraint.setDistance(Delta, CurLoop); in strongSIVtest() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LICM.cpp | 102 Loop *CurLoop; // The current loop we are working on... member 133 assert(CurLoop->contains(BB) && "Only valid if BB is IN the loop"); in inSubLoop() 134 return LI->getLoopFor(BB) != CurLoop; in inSubLoop() 214 CurLoop = L; in runOnLoop() 255 CurLoop = 0; in runOnLoop() 278 if (!CurLoop->contains(BB)) return; in SinkRegion() 325 if (!CurLoop->contains(BB)) return; in HoistRegion() 349 if (CurLoop->hasLoopInvariantOperands(&I) && canSinkOrHoistInst(I) && in HoistRegion() 427 if (CurLoop->contains(PN->getIncomingBlock(i))) in isNotUsedInLoop() 429 } else if (CurLoop->contains(User)) { in isNotUsedInLoop() [all …]
|
D | LoopIdiomRecognize.cpp | 67 Loop *CurLoop; member in __anon8ad89c530111::LoopIdiomRecognize 174 CurLoop = L; in runOnLoop() 203 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnLoop() 214 if (LI.getLoopFor(*BI) != CurLoop) in runOnLoop() 285 if (StoreEv == 0 || StoreEv->getLoop() != CurLoop || !StoreEv->isAffine()) in processLoopStore() 316 if (LoadEv && LoadEv->getLoop() == CurLoop && LoadEv->isAffine() && in processLoopStore() 342 if (Ev == 0 || Ev->getLoop() != CurLoop || !Ev->isAffine()) in processLoopMemSet() 457 CurLoop->isLoopInvariant(SplatValue)) { in processLoopStridedStore() 473 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStridedStore() 489 CurLoop, BECount, in processLoopStridedStore() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineLICM.cpp | 88 MachineLoop *CurLoop; // The current loop we are working on. member in __anon19b931500111::MachineLICM 250 static bool LoopIsOuterMostWithPredecessor(MachineLoop *CurLoop) { in INITIALIZE_PASS_DEPENDENCY() 252 if (!CurLoop->getLoopPredecessor()) in INITIALIZE_PASS_DEPENDENCY() 255 for (MachineLoop *L = CurLoop->getParentLoop(); L; L = L->getParentLoop()) in INITIALIZE_PASS_DEPENDENCY() 300 CurLoop = Worklist.pop_back_val(); in runOnMachineFunction() 306 if (PreRegAlloc && !LoopIsOuterMostWithPredecessor(CurLoop)) { in runOnMachineFunction() 307 Worklist.append(CurLoop->begin(), CurLoop->end()); in runOnMachineFunction() 311 CurLoop->getExitBlocks(ExitBlocks); in runOnMachineFunction() 318 MachineDomTreeNode *N = DT->getNode(CurLoop->getHeader()); in runOnMachineFunction() 452 const std::vector<MachineBasicBlock *> &Blocks = CurLoop->getBlocks(); in HoistRegionPostRA() [all …]
|
D | PHIElimination.cpp | 553 const MachineLoop *CurLoop = MLI ? MLI->getLoopFor(&MBB) : nullptr; in SplitPHIEdges() local 554 bool IsLoopHeader = CurLoop && &MBB == CurLoop->getHeader(); in SplitPHIEdges() 571 if (IsLoopHeader && PreLoop == CurLoop && !SplitAllCriticalEdges) in SplitPHIEdges() 600 if (!ShouldSplit && CurLoop != PreLoop) { in SplitPHIEdges() 604 if (CurLoop) dbgs() << "CurLoop: " << *CurLoop; in SplitPHIEdges() 610 ShouldSplit = PreLoop && !PreLoop->contains(CurLoop); in SplitPHIEdges()
|
D | MachineTraceMetrics.cpp | 316 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTracePred() local 318 if (CurLoop && MBB == CurLoop->getHeader()) in pickTracePred() 344 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTraceSucc() local 349 if (CurLoop && Succ == CurLoop->getHeader()) in pickTraceSucc() 352 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | MachineLICM.cpp | 111 MachineLoop *CurLoop; // The current loop we are working on. member in __anon5c676c880111::MachineLICMBase 294 static bool LoopIsOuterMostWithPredecessor(MachineLoop *CurLoop) { in INITIALIZE_PASS_DEPENDENCY() 296 if (!CurLoop->getLoopPredecessor()) in INITIALIZE_PASS_DEPENDENCY() 299 for (MachineLoop *L = CurLoop->getParentLoop(); L; L = L->getParentLoop()) in INITIALIZE_PASS_DEPENDENCY() 344 CurLoop = Worklist.pop_back_val(); in runOnMachineFunction() 350 if (PreRegAlloc && !LoopIsOuterMostWithPredecessor(CurLoop)) { in runOnMachineFunction() 351 Worklist.append(CurLoop->begin(), CurLoop->end()); in runOnMachineFunction() 355 CurLoop->getExitBlocks(ExitBlocks); in runOnMachineFunction() 362 MachineDomTreeNode *N = DT->getNode(CurLoop->getHeader()); in runOnMachineFunction() 500 const std::vector<MachineBasicBlock *> &Blocks = CurLoop->getBlocks(); in HoistRegionPostRA() [all …]
|
D | PHIElimination.cpp | 566 const MachineLoop *CurLoop = MLI ? MLI->getLoopFor(&MBB) : nullptr; in SplitPHIEdges() local 567 bool IsLoopHeader = CurLoop && &MBB == CurLoop->getHeader(); in SplitPHIEdges() 584 if (IsLoopHeader && PreLoop == CurLoop && !SplitAllCriticalEdges) in SplitPHIEdges() 613 if (!ShouldSplit && CurLoop != PreLoop) { in SplitPHIEdges() 618 if (CurLoop) in SplitPHIEdges() 619 dbgs() << "CurLoop: " << *CurLoop; in SplitPHIEdges() 625 ShouldSplit = PreLoop && !PreLoop->contains(CurLoop); in SplitPHIEdges()
|
D | MachineTraceMetrics.cpp | 330 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTracePred() local 332 if (CurLoop && MBB == CurLoop->getHeader()) in pickTracePred() 358 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTraceSucc() local 363 if (CurLoop && Succ == CurLoop->getHeader()) in pickTraceSucc() 366 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineLICM.cpp | 81 MachineLoop *CurLoop; // The current loop we are working on. member in __anoncf226cfc0111::MachineLICM 295 static bool LoopIsOuterMostWithPredecessor(MachineLoop *CurLoop) { in LoopIsOuterMostWithPredecessor() argument 297 if (!CurLoop->getLoopPredecessor()) in LoopIsOuterMostWithPredecessor() 300 for (MachineLoop *L = CurLoop->getParentLoop(); L; L = L->getParentLoop()) in LoopIsOuterMostWithPredecessor() 342 CurLoop = Worklist.pop_back_val(); in runOnMachineFunction() 347 if (PreRegAlloc && !LoopIsOuterMostWithPredecessor(CurLoop)) { in runOnMachineFunction() 348 Worklist.append(CurLoop->begin(), CurLoop->end()); in runOnMachineFunction() 357 MachineDomTreeNode *N = DT->getNode(CurLoop->getHeader()); in runOnMachineFunction() 473 const std::vector<MachineBasicBlock*> Blocks = CurLoop->getBlocks(); in HoistRegionPostRA() 536 const std::vector<MachineBasicBlock*> Blocks = CurLoop->getBlocks(); in AddToLiveIns() [all …]
|
/external/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 356 const Loop *CurLoop) { in setPoint() argument 360 AssociatedLoop = CurLoop; in setPoint() 364 const SCEV *CC, const Loop *CurLoop) { in setLine() argument 369 AssociatedLoop = CurLoop; in setLine() 373 const Loop *CurLoop) { in setDistance() argument 378 AssociatedLoop = CurLoop; in setDistance() 1067 const SCEV *DstConst, const Loop *CurLoop, in strongSIVtest() argument 1086 if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) { in strongSIVtest() 1119 NewConstraint.setDistance(SE->getConstant(Distance), CurLoop); in strongSIVtest() 1131 NewConstraint.setDistance(Delta, CurLoop); in strongSIVtest() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonVectorLoopCarriedReuse.cpp | 283 Loop *CurLoop; member in __anon2d6edbae0111::HexagonVectorLoopCarriedReuse 325 CurLoop = L; in INITIALIZE_PASS_DEPENDENCY() 473 BasicBlock *LoopPH = CurLoop->getLoopPreheader(); in reuseValue() 538 assert(CurLoop->getSubLoops().empty() && in doVLCR() 540 assert((CurLoop->getNumBlocks() == 1) && in doVLCR() 546 LLVM_DEBUG(dbgs() << "Working on Loop: " << *CurLoop->getHeader() << "\n"); in doVLCR() 578 if (BB != CurLoop->getHeader()) { in findDepChainFromPHI() 590 PN->getIncomingValueForBlock(CurLoop->getLoopPreheader()); in findDepChainFromPHI() 620 BasicBlock *BB = CurLoop->getHeader(); in findLoopCarriedDeps()
|
D | HexagonLoopIdiomRecognition.cpp | 145 bool isLegalStore(Loop *CurLoop, StoreInst *SI); 146 void collectStores(Loop *CurLoop, BasicBlock *BB, 148 bool processCopyingStore(Loop *CurLoop, StoreInst *SI, const SCEV *BECount); 150 bool runOnLoopBlock(Loop *CurLoop, BasicBlock *BB, const SCEV *BECount, 562 : CurLoop(loop), DL(dl), DT(dt), TLI(tli), SE(se) {} in PolynomialMultiplyRecognize() 570 LLVMContext &Ctx = CurLoop->getHeader()->getParent()->getContext(); in getPmpyType() 615 Loop *CurLoop; member in __anonb9c6eb300511::PolynomialMultiplyRecognize 913 if (CurLoop->isLoopInvariant(PV.X)) { in scanSelect() 1762 << *CurLoop << '\n'); in recognize() 1768 BasicBlock *LoopB = CurLoop->getHeader(); in recognize() [all …]
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFixIrreducibleControlFlow.cpp | 281 MachineLoop *CurLoop = Worklist.pop_back_val(); in runOnMachineFunction() local 282 Worklist.append(CurLoop->begin(), CurLoop->end()); in runOnMachineFunction() 283 Changed |= VisitLoop(MF, MLI, CurLoop); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFixIrreducibleControlFlow.cpp | 284 MachineLoop *CurLoop = Worklist.pop_back_val(); in runOnMachineFunction() local 285 Worklist.append(CurLoop->begin(), CurLoop->end()); in runOnMachineFunction() 286 Changed |= VisitLoop(MF, MLI, CurLoop); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | MustExecute.h | 59 const Loop *CurLoop,
|
D | LoopInfo.h | 95 for (const LoopT *CurLoop = ParentLoop; CurLoop; in getLoopDepth() local 96 CurLoop = CurLoop->ParentLoop) in getLoopDepth()
|
/external/llvm/include/llvm/Analysis/ |
D | LoopInfo.h | 97 for (const LoopT *CurLoop = ParentLoop; CurLoop; in getLoopDepth() local 98 CurLoop = CurLoop->ParentLoop) in getLoopDepth()
|