Move LiveIntervals.h to lib/CodeGen since it shouldn't be exposed to other parts of the compiler
llvm-svn: 11719
This commit is contained in:
parent
cdd56634b0
commit
486b12b71a
|
@ -16,7 +16,6 @@
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "liveintervals"
|
#define DEBUG_TYPE "liveintervals"
|
||||||
#include "llvm/CodeGen/LiveIntervals.h"
|
|
||||||
#include "llvm/Analysis/LoopInfo.h"
|
#include "llvm/Analysis/LoopInfo.h"
|
||||||
#include "llvm/CodeGen/LiveVariables.h"
|
#include "llvm/CodeGen/LiveVariables.h"
|
||||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||||
|
@ -31,6 +30,7 @@
|
||||||
#include "Support/Debug.h"
|
#include "Support/Debug.h"
|
||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
#include "Support/STLExtras.h"
|
#include "Support/STLExtras.h"
|
||||||
|
#include "LiveIntervals.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
#define DEBUG_TYPE "regalloc"
|
#define DEBUG_TYPE "regalloc"
|
||||||
#include "llvm/Function.h"
|
#include "llvm/Function.h"
|
||||||
#include "llvm/CodeGen/LiveIntervals.h"
|
|
||||||
#include "llvm/CodeGen/LiveVariables.h"
|
#include "llvm/CodeGen/LiveVariables.h"
|
||||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||||
|
@ -27,6 +26,7 @@
|
||||||
#include "Support/DepthFirstIterator.h"
|
#include "Support/DepthFirstIterator.h"
|
||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
#include "Support/STLExtras.h"
|
#include "Support/STLExtras.h"
|
||||||
|
#include "LiveIntervals.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
@ -562,6 +562,8 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur)
|
||||||
// otherwise we spill all intervals aliasing the register with
|
// otherwise we spill all intervals aliasing the register with
|
||||||
// minimum weight, rollback to the interval with the earliest
|
// minimum weight, rollback to the interval with the earliest
|
||||||
// start point and let the linear scan algorithm run again
|
// start point and let the linear scan algorithm run again
|
||||||
|
assert(MRegisterInfo::isPhysicalRegister(minReg) &&
|
||||||
|
"did not choose a register to spill?");
|
||||||
std::vector<bool> toSpill(mri_->getNumRegs(), false);
|
std::vector<bool> toSpill(mri_->getNumRegs(), false);
|
||||||
toSpill[minReg] = true;
|
toSpill[minReg] = true;
|
||||||
for (const unsigned* as = mri_->getAliasSet(minReg); *as; ++as)
|
for (const unsigned* as = mri_->getAliasSet(minReg); *as; ++as)
|
||||||
|
|
Loading…
Reference in New Issue