summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit979804d800cc5f84d67468921e3188bd3fbebed6 (patch)
tree6471a1e61d284388a190d4ce2fdbb3ae324d24c0 /llvm/lib/CodeGen
parent76d4632d92342a6776d58bc4ed4147f8ae9d05b7 (diff)
downloadbcm5719-llvm-979804d800cc5f84d67468921e3188bd3fbebed6.tar.gz
bcm5719-llvm-979804d800cc5f84d67468921e3188bd3fbebed6.zip
eliminate fp statistic
llvm-svn: 32251
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index d941640e60a..170febcc50b 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud