Lines Matching refs:Cache

699 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache,  in AssertSorted()  argument
702 Count = Cache.size(); in AssertSorted()
703 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()
714 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
721 if (!Cache.empty()) { in getNonLocalCallDependency()
726 return Cache; in getNonLocalCallDependency()
731 for (auto &Entry : Cache) in getNonLocalCallDependency()
736 llvm::sort(Cache); in getNonLocalCallDependency()
751 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
752 LLVM_DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency()
764 LLVM_DEBUG(AssertSorted(Cache, NumSortedEntries)); in getNonLocalCallDependency()
766 std::upper_bound(Cache.begin(), Cache.begin() + NumSortedEntries, in getNonLocalCallDependency()
768 if (Entry != Cache.begin() && std::prev(Entry)->getBB() == DirtyBB) in getNonLocalCallDependency()
772 if (Entry != Cache.begin() + NumSortedEntries && in getNonLocalCallDependency()
813 Cache.push_back(NonLocalDepEntry(DirtyBB, Dep)); in getNonLocalCallDependency()
830 return Cache; in getNonLocalCallDependency()
898 BasicBlock *BB, NonLocalDepInfo *Cache, unsigned NumSortedEntries, in getNonLocalInfoForBlock() argument
909 Cache->begin(), Cache->begin() + NumSortedEntries, NonLocalDepEntry(BB)); in getNonLocalInfoForBlock()
910 if (Entry != Cache->begin() && (Entry - 1)->getBB() == BB) in getNonLocalInfoForBlock()
914 if (Entry != Cache->begin() + NumSortedEntries && Entry->getBB() == BB) in getNonLocalInfoForBlock()
961 Cache->push_back(NonLocalDepEntry(BB, Dep)); in getNonLocalInfoForBlock()
983 SortNonLocalDepInfoCache(MemoryDependenceResults::NonLocalDepInfo &Cache, in SortNonLocalDepInfoCache() argument
985 switch (Cache.size() - NumSortedEntries) { in SortNonLocalDepInfoCache()
991 NonLocalDepEntry Val = Cache.back(); in SortNonLocalDepInfoCache()
992 Cache.pop_back(); in SortNonLocalDepInfoCache()
994 std::upper_bound(Cache.begin(), Cache.end() - 1, Val); in SortNonLocalDepInfoCache()
995 Cache.insert(Entry, Val); in SortNonLocalDepInfoCache()
1000 if (Cache.size() != 1) { in SortNonLocalDepInfoCache()
1001 NonLocalDepEntry Val = Cache.back(); in SortNonLocalDepInfoCache()
1002 Cache.pop_back(); in SortNonLocalDepInfoCache()
1004 llvm::upper_bound(Cache, Val); in SortNonLocalDepInfoCache()
1005 Cache.insert(Entry, Val); in SortNonLocalDepInfoCache()
1010 llvm::sort(Cache); in SortNonLocalDepInfoCache()
1118 NonLocalDepInfo *Cache = &CacheInfo->NonLocalDeps; in getNonLocalPointerDepFromBB() local
1132 for (auto &Entry : *Cache) { in getNonLocalPointerDepFromBB()
1146 for (auto &Entry : *Cache) { in getNonLocalPointerDepFromBB()
1169 if (!IsIncomplete && Cache->empty()) in getNonLocalPointerDepFromBB()
1186 unsigned NumSortedEntries = Cache->size(); in getNonLocalPointerDepFromBB()
1189 LLVM_DEBUG(AssertSorted(*Cache)); in getNonLocalPointerDepFromBB()
1201 if (Cache && NumSortedEntries != Cache->size()) { in getNonLocalPointerDepFromBB()
1202 SortNonLocalDepInfoCache(*Cache, NumSortedEntries); in getNonLocalPointerDepFromBB()
1220 LLVM_DEBUG(AssertSorted(*Cache, NumSortedEntries)); in getNonLocalPointerDepFromBB()
1222 QueryInst, Loc, isLoad, BB, Cache, NumSortedEntries, BatchAA); in getNonLocalPointerDepFromBB()
1284 if (Cache && NumSortedEntries != Cache->size()) { in getNonLocalPointerDepFromBB()
1285 SortNonLocalDepInfoCache(*Cache, NumSortedEntries); in getNonLocalPointerDepFromBB()
1286 NumSortedEntries = Cache->size(); in getNonLocalPointerDepFromBB()
1288 Cache = nullptr; in getNonLocalPointerDepFromBB()
1377 Cache = &CacheInfo->NonLocalDeps; in getNonLocalPointerDepFromBB()
1378 NumSortedEntries = Cache->size(); in getNonLocalPointerDepFromBB()
1393 if (!Cache) { in getNonLocalPointerDepFromBB()
1396 Cache = &CacheInfo->NonLocalDeps; in getNonLocalPointerDepFromBB()
1397 NumSortedEntries = Cache->size(); in getNonLocalPointerDepFromBB()
1417 for (NonLocalDepEntry &I : llvm::reverse(*Cache)) { in getNonLocalPointerDepFromBB()
1438 SortNonLocalDepInfoCache(*Cache, NumSortedEntries); in getNonLocalPointerDepFromBB()
1439 LLVM_DEBUG(AssertSorted(*Cache)); in getNonLocalPointerDepFromBB()