mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
NFC Add const
llvm-svn: 282952
This commit is contained in:
parent
41b1b96125
commit
470234459d
@ -59,14 +59,14 @@ void SampleProfileSummaryBuilder::addRecord(
|
||||
void ProfileSummaryBuilder::computeDetailedSummary() {
|
||||
if (DetailedSummaryCutoffs.empty())
|
||||
return;
|
||||
auto Iter = CountFrequencies.begin();
|
||||
auto End = CountFrequencies.end();
|
||||
std::sort(DetailedSummaryCutoffs.begin(), DetailedSummaryCutoffs.end());
|
||||
auto Iter = CountFrequencies.begin();
|
||||
const auto End = CountFrequencies.end();
|
||||
|
||||
uint32_t CountsSeen = 0;
|
||||
uint64_t CurrSum = 0, Count = 0;
|
||||
|
||||
for (uint32_t Cutoff : DetailedSummaryCutoffs) {
|
||||
for (const uint32_t Cutoff : DetailedSummaryCutoffs) {
|
||||
assert(Cutoff <= 999999);
|
||||
APInt Temp(128, TotalCount);
|
||||
APInt N(128, Cutoff);
|
||||
|
Loading…
Reference in New Issue
Block a user