[NewGVN] Remove for_each_found (NFC)

The last use of the function was removed on Sep 30, 2017 in commit
9b926e90d3.
This commit is contained in:
Kazu Hirata 2020-12-22 20:13:27 -08:00
parent efe7f5ede0
commit 3c707d73f2
1 changed files with 0 additions and 12 deletions

View File

@ -802,8 +802,6 @@ private:
const BasicBlock *) const;
// Various instruction touch utilities
template <typename Map, typename KeyType, typename Func>
void for_each_found(Map &, const KeyType &, Func);
template <typename Map, typename KeyType>
void touchAndErase(Map &, const KeyType &);
void markUsersTouched(Value *);
@ -1991,16 +1989,6 @@ NewGVN::performSymbolicEvaluation(Value *V,
return E;
}
// Look up a container in a map, and then call a function for each thing in the
// found container.
template <typename Map, typename KeyType, typename Func>
void NewGVN::for_each_found(Map &M, const KeyType &Key, Func F) {
const auto Result = M.find_as(Key);
if (Result != M.end())
for (typename Map::mapped_type::value_type Mapped : Result->second)
F(Mapped);
}
// Look up a container of values/instructions in a map, and touch all the
// instructions in the container. Then erase value from the map.
template <typename Map, typename KeyType>