}
static void checkForCyclesHelper(const SDNode *N,
- SmallPtrSet<const SDNode *, 32> &visited,
- SmallPtrSet<const SDNode *, 32> &checked) {
+ std::set<const SDNode *> &visited,
+ std::set<const SDNode *> &checked) {
if (checked.find(N) != checked.end())
return;
void llvm::checkForCycles(const llvm::SDNode *N) {
#ifdef XDEBUG
assert(N && "Checking nonexistant SDNode");
- SmallPtrSet<const SDNode *, 32> visited;
- SmallPtrSet<const SDNode *, 32> checked;
+ std::set<const SDNode *> visited;
+ std::set<const SDNode *> checked;
checkForCyclesHelper(N, visited, checked);
#endif
}