Lines Matching refs:Cache
737 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache, in AssertSorted() argument
740 Count = Cache.size(); in AssertSorted()
741 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()
752 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
759 if (!Cache.empty()) { in getNonLocalCallDependency()
764 return Cache; in getNonLocalCallDependency()
769 for (auto &Entry : Cache) in getNonLocalCallDependency()
774 llvm::sort(Cache); in getNonLocalCallDependency()
789 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
790 LLVM_DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency()
802 LLVM_DEBUG(AssertSorted(Cache, NumSortedEntries)); in getNonLocalCallDependency()
804 std::upper_bound(Cache.begin(), Cache.begin() + NumSortedEntries, in getNonLocalCallDependency()
806 if (Entry != Cache.begin() && std::prev(Entry)->getBB() == DirtyBB) in getNonLocalCallDependency()
810 if (Entry != Cache.begin() + NumSortedEntries && in getNonLocalCallDependency()
851 Cache.push_back(NonLocalDepEntry(DirtyBB, Dep)); in getNonLocalCallDependency()
868 return Cache; in getNonLocalCallDependency()
936 BasicBlock *BB, NonLocalDepInfo *Cache, unsigned NumSortedEntries, in getNonLocalInfoForBlock() argument
947 Cache->begin(), Cache->begin() + NumSortedEntries, NonLocalDepEntry(BB)); in getNonLocalInfoForBlock()
948 if (Entry != Cache->begin() && (Entry - 1)->getBB() == BB) in getNonLocalInfoForBlock()
952 if (Entry != Cache->begin() + NumSortedEntries && Entry->getBB() == BB) in getNonLocalInfoForBlock()
999 Cache->push_back(NonLocalDepEntry(BB, Dep)); in getNonLocalInfoForBlock()
1021 SortNonLocalDepInfoCache(MemoryDependenceResults::NonLocalDepInfo &Cache, in SortNonLocalDepInfoCache() argument
1023 switch (Cache.size() - NumSortedEntries) { in SortNonLocalDepInfoCache()
1029 NonLocalDepEntry Val = Cache.back(); in SortNonLocalDepInfoCache()
1030 Cache.pop_back(); in SortNonLocalDepInfoCache()
1032 std::upper_bound(Cache.begin(), Cache.end() - 1, Val); in SortNonLocalDepInfoCache()
1033 Cache.insert(Entry, Val); in SortNonLocalDepInfoCache()
1038 if (Cache.size() != 1) { in SortNonLocalDepInfoCache()
1039 NonLocalDepEntry Val = Cache.back(); in SortNonLocalDepInfoCache()
1040 Cache.pop_back(); in SortNonLocalDepInfoCache()
1042 llvm::upper_bound(Cache, Val); in SortNonLocalDepInfoCache()
1043 Cache.insert(Entry, Val); in SortNonLocalDepInfoCache()
1048 llvm::sort(Cache); in SortNonLocalDepInfoCache()
1157 NonLocalDepInfo *Cache = &CacheInfo->NonLocalDeps; in getNonLocalPointerDepFromBB() local
1171 for (auto &Entry : *Cache) { in getNonLocalPointerDepFromBB()
1185 for (auto &Entry : *Cache) { in getNonLocalPointerDepFromBB()
1208 if (!IsIncomplete && Cache->empty()) in getNonLocalPointerDepFromBB()
1225 unsigned NumSortedEntries = Cache->size(); in getNonLocalPointerDepFromBB()
1228 LLVM_DEBUG(AssertSorted(*Cache)); in getNonLocalPointerDepFromBB()
1240 if (Cache && NumSortedEntries != Cache->size()) { in getNonLocalPointerDepFromBB()
1241 SortNonLocalDepInfoCache(*Cache, NumSortedEntries); in getNonLocalPointerDepFromBB()
1259 LLVM_DEBUG(AssertSorted(*Cache, NumSortedEntries)); in getNonLocalPointerDepFromBB()
1261 QueryInst, Loc, isLoad, BB, Cache, NumSortedEntries, BatchAA); in getNonLocalPointerDepFromBB()
1323 if (Cache && NumSortedEntries != Cache->size()) { in getNonLocalPointerDepFromBB()
1324 SortNonLocalDepInfoCache(*Cache, NumSortedEntries); in getNonLocalPointerDepFromBB()
1325 NumSortedEntries = Cache->size(); in getNonLocalPointerDepFromBB()
1327 Cache = nullptr; in getNonLocalPointerDepFromBB()
1416 Cache = &CacheInfo->NonLocalDeps; in getNonLocalPointerDepFromBB()
1417 NumSortedEntries = Cache->size(); in getNonLocalPointerDepFromBB()
1432 if (!Cache) { in getNonLocalPointerDepFromBB()
1435 Cache = &CacheInfo->NonLocalDeps; in getNonLocalPointerDepFromBB()
1436 NumSortedEntries = Cache->size(); in getNonLocalPointerDepFromBB()
1456 for (NonLocalDepEntry &I : llvm::reverse(*Cache)) { in getNonLocalPointerDepFromBB()
1477 SortNonLocalDepInfoCache(*Cache, NumSortedEntries); in getNonLocalPointerDepFromBB()
1478 LLVM_DEBUG(AssertSorted(*Cache)); in getNonLocalPointerDepFromBB()