summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2019-03-08 23:32:07 +0000
committerWei Mi <wmi@google.com>2019-03-08 23:32:07 +0000
commit98214347c4acded6772a3a7d597f753224d97272 (patch)
treebbf9e172aa037a9f2f2d3d56afbffd8b71f44ed3 /llvm/lib/CodeGen
parent3e3d6c903876540665a5f27f7ec03c6cfd9d04f3 (diff)
downloadbcm5719-llvm-98214347c4acded6772a3a7d597f753224d97272.tar.gz
bcm5719-llvm-98214347c4acded6772a3a7d597f753224d97272.zip
Rename a local variable counter to Counter.
llvm-svn: 355759
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegisterCoalescer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index 237cf184d8b..4f1077787c9 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -3277,9 +3277,9 @@ void RegisterCoalescer::mergeSubRangeInto(LiveInterval &LI,
bool RegisterCoalescer::isHighCostLiveInterval(LiveInterval &LI) {
if (LI.valnos.size() < LargeIntervalSizeThreshold)
return false;
- auto &counter = LargeLIVisitCounter[LI.reg];
- if (counter < LargeIntervalFreqThreshold) {
- counter++;
+ auto &Counter = LargeLIVisitCounter[LI.reg];
+ if (Counter < LargeIntervalFreqThreshold) {
+ Counter++;
return false;
}
return true;
OpenPOWER on IntegriCloud