Add profile summary support for sample profile.
Differential Revision: http://reviews.llvm.org/D17178
llvm-svn: 261304
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index 9c17d4e..b00c139 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -595,9 +595,8 @@
} 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;
}