Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Cache

155 // The type of the internal cache used inside the findBasePointers family
500 static Value *findBaseDefiningValueCached(Value *I, DefiningValueMapTy &Cache) {
501 Value *&Cached = Cache[I];
507 assert(Cache[I] != nullptr);
513 static Value *findBaseOrBDV(Value *I, DefiningValueMapTy &Cache) {
514 Value *Def = findBaseDefiningValueCached(I, Cache);
515 auto Found = Cache.find(Def);
516 if (Found != Cache.end()) {
648 static Value *findBasePointer(Value *I, DefiningValueMapTy &Cache) {
649 Value *Def = findBaseOrBDV(I, Cache);
701 Value *Base = findBaseOrBDV(InVal, Cache);
764 Value *BDV = findBaseOrBDV(V, Cache);
882 Value *BDV = findBaseOrBDV(Input, Cache);
979 // Cache all of our results so we can cheaply reuse them
988 DEBUG(dbgs() << "Updating base value cache"
990 << (Cache.count(BDV) ? Cache[BDV]->getName().str() : "none")
993 if (Cache.count(BDV)) {
996 // Once we transition from the BDV relation being store in the Cache to
998 assert((!isKnownBaseResult(Cache[BDV]) || Cache[BDV] == Base) &&
1001 Cache[BDV] = Base;
1003 assert(Cache.count(Def));
1004 return Cache[Def];
2031 // Cache the 'defining value' relation used in the computation and
2040 } // end of cache scope