summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ProfileData
diff options
context:
space:
mode:
authorNathan Slingerland <slingn@gmail.com>2015-12-04 02:13:58 +0000
committerNathan Slingerland <slingn@gmail.com>2015-12-04 02:13:58 +0000
commitcb921a1d88065fc43d2121834a3c59c20d970b5b (patch)
tree51ddca63d7fbf5faf027c93d84bc9953d28156b4 /llvm/unittests/ProfileData
parent7cc13f2e5857e95da828733421bf5c49179c5fe1 (diff)
downloadbcm5719-llvm-cb921a1d88065fc43d2121834a3c59c20d970b5b.tar.gz
bcm5719-llvm-cb921a1d88065fc43d2121834a3c59c20d970b5b.zip
Revert "[llvm-profdata] Add support for weighted merge of profile data"
This reverts commit b7250858d96b8ce567681214273ac0e62713c661. Reverting in order to investigate Windows test failure. llvm-svn: 254687
Diffstat (limited to 'llvm/unittests/ProfileData')
-rw-r--r--llvm/unittests/ProfileData/InstrProfTest.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp
index 946afdadba9..635a5431a51 100644
--- a/llvm/unittests/ProfileData/InstrProfTest.cpp
+++ b/llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -490,24 +490,4 @@ TEST_F(InstrProfTest, get_max_function_count) {
ASSERT_EQ(1ULL << 63, Reader->getMaximumFunctionCount());
}
-TEST_F(InstrProfTest, get_weighted_function_counts) {
- InstrProfRecord Record1("foo", 0x1234, {1, 2});
- InstrProfRecord Record2("foo", 0x1235, {3, 4});
- Writer.addRecord(std::move(Record1), 3);
- Writer.addRecord(std::move(Record2), 5);
- auto Profile = Writer.writeBuffer();
- readProfile(std::move(Profile));
-
- std::vector<uint64_t> Counts;
- ASSERT_TRUE(NoError(Reader->getFunctionCounts("foo", 0x1234, Counts)));
- ASSERT_EQ(2U, Counts.size());
- ASSERT_EQ(3U, Counts[0]);
- ASSERT_EQ(6U, Counts[1]);
-
- ASSERT_TRUE(NoError(Reader->getFunctionCounts("foo", 0x1235, Counts)));
- ASSERT_EQ(2U, Counts.size());
- ASSERT_EQ(15U, Counts[0]);
- ASSERT_EQ(20U, Counts[1]);
-}
-
} // end anonymous namespace
OpenPOWER on IntegriCloud