revert david's patch which does not even build.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAG.cpp
index 2108717c5b62aa9e9a5620bc913c7284ed863e8f..41050211b2e687cdbff88e42327286de2d613d14 100644 (file)
@@ -6344,8 +6344,8 @@ bool ShuffleVectorSDNode::isSplatMask(const int *Mask, EVT VT) {
 }
 
 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;
 
@@ -6371,8 +6371,8 @@ static void checkForCyclesHelper(const SDNode *N,
 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
 }