aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-06 01:48:55 +0000
committerChris Lattner <sabre@nondot.org>2006-12-06 01:48:55 +0000
commit4c7e227973132deb49f2feb7293e080b55c377e0 (patch)
treebffdc8b09df8bdabdd077dfda95dcd67a42ae42f /lib/CodeGen/RegAllocLinearScan.cpp
parentc30598bc3ad792eb8cc75b188eb872a28c62ab71 (diff)
eliminate fp statistic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index d941640e60..170febcc50 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -37,8 +37,8 @@ using namespace llvm;
namespace {
- static Statistic<double> efficiency
- ("regalloc", "Ratio of intervals processed over total intervals");
+ static Statistic<> NumIters
+ ("regalloc", "Number of iterations performed");
static Statistic<> NumBacktracks
("regalloc", "Number of times we had to backtrack");
@@ -273,7 +273,7 @@ void RA::linearScan()
DEBUG(printIntervals("inactive", inactive_.begin(), inactive_.end()));
}
numIntervals += li_->getNumIntervals();
- efficiency = double(numIterations) / double(numIntervals);
+ NumIters += numIterations;
// expire any remaining active intervals
for (IntervalPtrs::reverse_iterator