summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-03-10 19:45:16 +0000
committerDehao Chen <dehao@google.com>2017-03-10 19:45:16 +0000
commitc2048155a0efbbc0a860da03f0d1f799016e73d6 (patch)
tree703607eac397edb3e1e963f6fd612aae1f78b761 /llvm/unittests/Analysis
parentffdb00eda9e23389aca3be4bdc056efce35ad619 (diff)
downloadbcm5719-llvm-c2048155a0efbbc0a860da03f0d1f799016e73d6.tar.gz
bcm5719-llvm-c2048155a0efbbc0a860da03f0d1f799016e73d6.zip
Refactor the PSI to extract getCallSiteCount and remove checks for profile type.
Summary: There is no need to check profile count as only CallInst will have metadata attached. Reviewers: eraman Reviewed By: eraman Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D30799 llvm-svn: 297500
Diffstat (limited to 'llvm/unittests/Analysis')
-rw-r--r--llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp b/llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
index 56a8c2ec14d..0b4b1de2805 100644
--- a/llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
+++ b/llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
@@ -162,12 +162,6 @@ TEST_F(ProfileSummaryInfoTest, InstrProf) {
EXPECT_TRUE(PSI.isHotCallSite(CS1, &BFI));
EXPECT_FALSE(PSI.isHotCallSite(CS2, &BFI));
-
- // Test that adding an MD_prof metadata with a hot count on CS2 does not
- // change itas hotness as it has no effect in instrumented profiling.
- MDBuilder MDB(M->getContext());
- CI2->setMetadata(llvm::LLVMContext::MD_prof, MDB.createBranchWeights({400}));
- EXPECT_FALSE(PSI.isHotCallSite(CS2, &BFI));
}
TEST_F(ProfileSummaryInfoTest, SampleProf) {
OpenPOWER on IntegriCloud