]> granicus.if.org Git - llvm/commitdiff
Rename a local variable counter to Counter.
authorWei Mi <wmi@google.com>
Fri, 8 Mar 2019 23:32:07 +0000 (23:32 +0000)
committerWei Mi <wmi@google.com>
Fri, 8 Mar 2019 23:32:07 +0000 (23:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355759 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegisterCoalescer.cpp

index 237cf184d8bc7ebb56b8a5b95d87f114529f7b72..4f1077787c9dc6a7bbb3aead2a555563aab0d576 100644 (file)
@@ -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;