Rename a local variable counter to Counter.

llvm-svn: 355759
This commit is contained in:
Wei Mi 2019-03-08 23:32:07 +00:00
parent 3e3d6c9038
commit 98214347c4
1 changed files with 3 additions and 3 deletions

View File

@ -3277,9 +3277,9 @@ void RegisterCoalescer::mergeSubRangeInto(LiveInterval &LI,
bool RegisterCoalescer::isHighCostLiveInterval(LiveInterval &LI) { bool RegisterCoalescer::isHighCostLiveInterval(LiveInterval &LI) {
if (LI.valnos.size() < LargeIntervalSizeThreshold) if (LI.valnos.size() < LargeIntervalSizeThreshold)
return false; return false;
auto &counter = LargeLIVisitCounter[LI.reg]; auto &Counter = LargeLIVisitCounter[LI.reg];
if (counter < LargeIntervalFreqThreshold) { if (Counter < LargeIntervalFreqThreshold) {
counter++; Counter++;
return false; return false;
} }
return true; return true;