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/lib/ProfileData/InstrProfReader.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/lib/ProfileData/InstrProfReader.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfReader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index 7968cf1..9c17d4e 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/lib/ProfileData/InstrProfReader.cpp @@ -589,15 +589,15 @@ IndexedInstrProfReader::readSummary(IndexedInstrProf::ProfVersion Version, for (unsigned I = 0; I < SummarySize / sizeof(uint64_t); I++) Dst[I] = endian::byte_swap<uint64_t, little>(Src[I]); - // initialize ProfileSummary using the SummaryData from disk. - this->Summary = llvm::make_unique<ProfileSummary>(*(SummaryData.get())); + // initialize InstrProfSummary using the SummaryData from disk. + this->Summary = llvm::make_unique<InstrProfSummary>(*(SummaryData.get())); return Cur + SummarySize; } else { // For older version of profile data, we need to compute on the fly: using namespace IndexedInstrProf; std::vector<uint32_t> Cutoffs(&SummaryCutoffs[0], &SummaryCutoffs[NumSummaryCutoffs]); - this->Summary = llvm::make_unique<ProfileSummary>(Cutoffs); + this->Summary = llvm::make_unique<InstrProfSummary>(Cutoffs); this->Summary->computeDetailedSummary(); return Cur; } |