diff options
author | Easwaran Raman <eraman@google.com> | 2016-02-17 18:18:47 +0000 |
---|---|---|
committer | Easwaran Raman <eraman@google.com> | 2016-02-17 18:18:47 +0000 |
commit | 4309570deb5a5ff2bcaf3ea9ddbefa93de06f5aa (patch) | |
tree | c6c21ebe59c44e793bd2336b5337acc0cef81d1f /llvm/unittests/ProfileData/InstrProfTest.cpp | |
parent | 3d3ff650d6507506d2b5502c02771312da4f885c (diff) | |
download | llvm-4309570deb5a5ff2bcaf3ea9ddbefa93de06f5aa.zip llvm-4309570deb5a5ff2bcaf3ea9ddbefa93de06f5aa.tar.gz llvm-4309570deb5a5ff2bcaf3ea9ddbefa93de06f5aa.tar.bz2 |
Add a profile summary class specific to instrumentation profiles.
Modify ProfileSummary class to make it not instrumented profile specific.
Add a new InstrumentedProfileSummary class that inherits from ProfileSummary.
Differential Revision: http://reviews.llvm.org/D17310
llvm-svn: 261119
Diffstat (limited to 'llvm/unittests/ProfileData/InstrProfTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/InstrProfTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp index 31dca3c..3d209a5 100644 --- a/llvm/unittests/ProfileData/InstrProfTest.cpp +++ b/llvm/unittests/ProfileData/InstrProfTest.cpp @@ -154,7 +154,7 @@ TEST_F(InstrProfTest, get_profile_summary) { auto Profile = Writer.writeBuffer(); readProfile(std::move(Profile)); - ProfileSummary &PS = Reader->getSummary(); + InstrProfSummary &PS = Reader->getSummary(); ASSERT_EQ(2305843009213693952U, PS.getMaxFunctionCount()); ASSERT_EQ(2305843009213693952U, PS.getMaxBlockCount()); ASSERT_EQ(10U, PS.getNumBlocks()); @@ -171,10 +171,10 @@ TEST_F(InstrProfTest, get_profile_summary) { auto NinetyFivePerc = std::find_if(Details.begin(), Details.end(), Predicate); Cutoff = 990000; auto NinetyNinePerc = std::find_if(Details.begin(), Details.end(), Predicate); - ASSERT_EQ(576460752303423488U, EightyPerc->MinBlockCount); - ASSERT_EQ(288230376151711744U, NinetyPerc->MinBlockCount); - ASSERT_EQ(288230376151711744U, NinetyFivePerc->MinBlockCount); - ASSERT_EQ(72057594037927936U, NinetyNinePerc->MinBlockCount); + ASSERT_EQ(576460752303423488U, EightyPerc->MinCount); + ASSERT_EQ(288230376151711744U, NinetyPerc->MinCount); + ASSERT_EQ(288230376151711744U, NinetyFivePerc->MinCount); + ASSERT_EQ(72057594037927936U, NinetyNinePerc->MinCount); } TEST_P(MaybeSparseInstrProfTest, get_icall_data_read_write) { |