[llvm-commits] [llvm] r159030 - in /llvm/trunk: include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/LiveIntervalAnalysis.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jun 22 13:40:16 PDT 2012
Author: stoklund
Date: Fri Jun 22 15:40:15 2012
New Revision: 159030
URL: http://llvm.org/viewvc/llvm-project?rev=159030&view=rev
Log:
Delete a boring statistic.
Modified:
llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h?rev=159030&r1=159029&r2=159030&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h Fri Jun 22 15:40:15 2012
@@ -109,8 +109,6 @@
// Calculate the spill weight to assign to a single instruction.
static float getSpillWeight(bool isDef, bool isUse, unsigned loopDepth);
- unsigned getNumIntervals() const { return (unsigned)VirtRegIntervals.size(); }
-
LiveInterval &getInterval(unsigned Reg) {
LiveInterval *LI = VirtRegIntervals[Reg];
assert(LI && "Interval does not exist for virtual register");
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=159030&r1=159029&r2=159030&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Fri Jun 22 15:40:15 2012
@@ -31,7 +31,6 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/DenseSet.h"
-#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/STLExtras.h"
#include "LiveRangeCalc.h"
#include <algorithm>
@@ -39,8 +38,6 @@
#include <cmath>
using namespace llvm;
-STATISTIC(numIntervals , "Number of original intervals");
-
char LiveIntervals::ID = 0;
INITIALIZE_PASS_BEGIN(LiveIntervals, "liveintervals",
"Live Interval Analysis", false, false)
@@ -109,9 +106,6 @@
ReservedRegs = TRI->getReservedRegs(fn);
computeIntervals();
-
- numIntervals += getNumIntervals();
-
computeLiveInRegUnits();
DEBUG(dump());
More information about the llvm-commits
mailing list