diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-20 20:43:08 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-20 20:43:08 +0000 |
commit | cea44711203cfcb3b18528401ac1ad170677ebfe (patch) | |
tree | 1791cf81fb27b32f136da39fdcc95a21dd10c279 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 8ecc27e66750077724539a02b5c20d8b942a8e50 (diff) |
Rename statistic and add another one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 55c0370ad2..53768ae95c 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -42,7 +42,10 @@ namespace { "Live Interval Analysis"); Statistic<> numIntervals("liveintervals", "Number of intervals"); - Statistic<> numJoined ("liveintervals", "Number of joined intervals"); + Statistic<> numJoined ("liveintervals", "Number of intervals after " + "coalescing"); + Statistic<> numJoins ("liveintervals", "Number of interval joins " + "performed"); Statistic<> numPeep ("liveintervals", "Number of identity moves " "eliminated after coalescing"); Statistic<> numFolded ("liveintervals", "Number of register operands " @@ -636,8 +639,8 @@ void LiveIntervals::Interval::join(const LiveIntervals::Interval& other) cur = mergeRangesForward(cur); cur = mergeRangesBackward(cur); } - if (MRegisterInfo::isVirtualRegister(reg)) - weight += other.weight; + weight += other.weight; + ++numJoins; } LiveIntervals::Interval::Ranges::iterator |