diff options
author | Easwaran Raman <eraman@google.com> | 2016-02-19 03:15:33 +0000 |
---|---|---|
committer | Easwaran Raman <eraman@google.com> | 2016-02-19 03:15:33 +0000 |
commit | 448784058c3b48702002396342172a1d6ddf8b5c (patch) | |
tree | 29e2910eb705559a2dd8b64e6a88015b839d5e27 /lib/ProfileData/InstrProfReader.cpp | |
parent | 58cfec65cf575d698837639bbb437ab565240e9b (diff) |
Add profile summary support for sample profile.
Differential Revision: http://reviews.llvm.org/D17178
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261304 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ProfileData/InstrProfReader.cpp')
-rw-r--r-- | lib/ProfileData/InstrProfReader.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ProfileData/InstrProfReader.cpp b/lib/ProfileData/InstrProfReader.cpp index 9c17d4e082d..b00c1392eb8 100644 --- a/lib/ProfileData/InstrProfReader.cpp +++ b/lib/ProfileData/InstrProfReader.cpp @@ -595,9 +595,8 @@ IndexedInstrProfReader::readSummary(IndexedInstrProf::ProfVersion Version, } 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<InstrProfSummary>(Cutoffs); + this->Summary = + llvm::make_unique<InstrProfSummary>(ProfileSummary::DefaultCutoffs); this->Summary->computeDetailedSummary(); return Cur; } |