//===- 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.
+//
+//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
#include "llvm/Support/InstVisitor.h"
#include "Support/Statistic.h"
#include <vector>
+using namespace llvm;
namespace {
Statistic<> TotalNumCallees("totalcallees",
bool DSGraphStats::isNodeForValueCollapsed(Value *V) {
if (DSNode *N = getNodeForValue(V))
- return N->isNodeCompletelyFolded();
+ return N->isNodeCompletelyFolded() || N->isIncomplete();
return false;
}