[llvm] r355759 - Rename a local variable counter to Counter.

Wei Mi via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 15:32:07 PST 2019


Author: wmi
Date: Fri Mar  8 15:32:07 2019
New Revision: 355759

URL: http://llvm.org/viewvc/llvm-project?rev=355759&view=rev
Log:
Rename a local variable counter to Counter.


Modified:
    llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Modified: llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp?rev=355759&r1=355758&r2=355759&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Fri Mar  8 15:32:07 2019
@@ -3277,9 +3277,9 @@ void RegisterCoalescer::mergeSubRangeInt
 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;




More information about the llvm-commits mailing list