From aee775a6b717f0ec397e5d82d2a24d607f147466 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Dec 2006 22:41:21 +0000 Subject: Eliminate static ctors from Statistics llvm-svn: 32698 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp') diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 2175d358483..68d19488375 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -36,24 +36,15 @@ #include using namespace llvm; +STATISTIC(numIntervals, "Number of original intervals"); +STATISTIC(numIntervalsAfter, "Number of intervals after coalescing"); +STATISTIC(numJoins , "Number of interval joins performed"); +STATISTIC(numPeep , "Number of identity moves eliminated after coalescing"); +STATISTIC(numFolded , "Number of loads/stores folded into instructions"); + namespace { RegisterPass X("liveintervals", "Live Interval Analysis"); - static Statistic numIntervals - ("liveintervals", "Number of original intervals"); - - static Statistic numIntervalsAfter - ("liveintervals", "Number of intervals after coalescing"); - - static Statistic numJoins - ("liveintervals", "Number of interval joins performed"); - - static Statistic numPeep - ("liveintervals", "Number of identity moves eliminated after coalescing"); - - static Statistic numFolded - ("liveintervals", "Number of loads/stores folded into instructions"); - static cl::opt EnableJoining("join-liveintervals", cl::desc("Coallesce copies (default=true)"), -- cgit v1.2.3