diff options
-rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 6 |
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; |