1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Use a SmallPtrSet as suggested by Chris.

llvm-svn: 97056
This commit is contained in:
David Greene 2010-02-24 20:59:49 +00:00
parent 63932c105a
commit 68c9ece3da

View File

@ -6344,8 +6344,8 @@ bool ShuffleVectorSDNode::isSplatMask(const int *Mask, EVT VT) {
}
static void checkForCyclesHelper(const SDNode *N,
std::set<const SDNode *> &visited,
std::set<const SDNode *> &checked) {
SmallPtrSet<const SDNode *, 32> &visited,
SmallPtrSet<const SDNode *, 32> &checked) {
if (checked.find(N) != checked.end())
return;
@ -6371,8 +6371,8 @@ static void checkForCyclesHelper(const SDNode *N,
void llvm::checkForCycles(const llvm::SDNode *N) {
#ifdef XDEBUG
assert(N && "Checking nonexistant SDNode");
std::set<const SDNode *> visited;
std::set<const SDNode *> checked;
SmallPtrSet<const SDNode *, 32> visited;
SmallPtrSet<const SDNode *, 32> checked;
checkForCyclesHelper(N, visited, checked);
#endif
}