[LVI] Use a SmallDenseMap instead of std::map for ValueCacheEntryTy