ADD MORE FUNCTIONS!
[oota-llvm.git] / lib / Analysis / DataStructure / DataStructureStats.cpp
index ffd560b24572f4cbabd0ef7ab98fb16b32640170..a48223e0edfc43bbd45a32f6e03784654749326d 100644 (file)
@@ -1,4 +1,11 @@
 //===- DSGraphStats.cpp - Various statistics for DS Graphs ----------------===//
+// 
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
 //
 //===----------------------------------------------------------------------===//
 
@@ -11,6 +18,7 @@
 #include "llvm/Support/InstVisitor.h"
 #include "Support/Statistic.h"
 #include <vector>
+using namespace llvm;
 
 namespace {
   Statistic<> TotalNumCallees("totalcallees",
@@ -104,7 +112,7 @@ DSNode *DSGraphStats::getNodeForValue(Value *V) {
 
 bool DSGraphStats::isNodeForValueCollapsed(Value *V) {
   if (DSNode *N = getNodeForValue(V))
-    return N->isNodeCompletelyFolded();
+    return N->isNodeCompletelyFolded() || N->isIncomplete();
   return false;
 }