// 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");
#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>
#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)
ReservedRegs = TRI->getReservedRegs(fn);
computeIntervals();
-
- numIntervals += getNumIntervals();
-
computeLiveInRegUnits();
DEBUG(dump());