summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ModuleSummaryIndex.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2018-02-12 20:43:31 +0000
committerVolodymyr Sapsai <vsapsai@apple.com>2018-02-12 20:43:31 +0000
commit2ad768bb1326a2a05ab3f89c22208d083ad304fd (patch)
tree30993a317d27a7880055f9f6b40b6238caa2ef93 /llvm/lib/IR/ModuleSummaryIndex.cpp
parent9fa3a808b5e24b60f5be3db5f5fc7031da83ceef (diff)
downloadbcm5719-llvm-2ad768bb1326a2a05ab3f89c22208d083ad304fd.tar.gz
bcm5719-llvm-2ad768bb1326a2a05ab3f89c22208d083ad304fd.zip
Revert "[ThinLTO] Add GraphTraits for FunctionSummaries"
It caused assertion failure Assertion failed: (!DD.IsLambda && !MergeDD.IsLambda && "faked up lambda definition?"), function MergeDefinitionData, file /Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/lib/Serialization/ASTReaderDecl.cpp, line 1675. on the second stage build bots. llvm-svn: 324932
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
-rw-r--r--llvm/lib/IR/ModuleSummaryIndex.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp
index 4c4466f9a90..ce74c00766f 100644
--- a/llvm/lib/IR/ModuleSummaryIndex.cpp
+++ b/llvm/lib/IR/ModuleSummaryIndex.cpp
@@ -13,14 +13,10 @@
//===----------------------------------------------------------------------===//
#include "llvm/IR/ModuleSummaryIndex.h"
-#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/Path.h"
-#include "llvm/Support/raw_ostream.h"
using namespace llvm;
-FunctionSummary FunctionSummary::ExternalNode =
- FunctionSummary::makeDummyFunctionSummary({});
bool ValueInfo::isDSOLocal() const {
// Need to check all summaries are local in case of hash collisions.
return getSummaryList().size() &&
@@ -84,26 +80,6 @@ bool ModuleSummaryIndex::isGUIDLive(GlobalValue::GUID GUID) const {
return false;
}
-// TODO: write a graphviz dumper for SCCs (see ModuleSummaryIndex::exportToDot)
-// then delete this function and update its tests
-LLVM_DUMP_METHOD
-void ModuleSummaryIndex::dumpSCCs(raw_ostream &O) {
- for (scc_iterator<ModuleSummaryIndex *> I =
- scc_begin<ModuleSummaryIndex *>(this);
- !I.isAtEnd(); ++I) {
- O << "SCC (" << utostr(I->size()) << " node" << (I->size() == 1 ? "" : "s")
- << ") {\n";
- for (const ValueInfo V : *I) {
- FunctionSummary *F = nullptr;
- if (V.getSummaryList().size())
- F = cast<FunctionSummary>(V.getSummaryList().front().get());
- O << " " << (F == nullptr ? "External" : "") << " " << utostr(V.getGUID())
- << (I.hasLoop() ? " (has loop)" : "") << "\n";
- }
- O << "}\n";
- }
-}
-
namespace {
struct Attributes {
void add(const Twine &Name, const Twine &Value,
OpenPOWER on IntegriCloud