diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-23 00:50:15 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-23 00:50:15 +0000 |
commit | 486b12b71a0926b49c2b01a1fd50d6663fea21f3 (patch) | |
tree | ceda725961c22083a703a2e4cfe898df3f65a418 | |
parent | cdd56634b0a851253cb38def58704de9e451da30 (diff) | |
download | bcm5719-llvm-486b12b71a0926b49c2b01a1fd50d6663fea21f3.tar.gz bcm5719-llvm-486b12b71a0926b49c2b01a1fd50d6663fea21f3.zip |
Move LiveIntervals.h to lib/CodeGen since it shouldn't be exposed to other parts of the compiler
llvm-svn: 11719
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervals.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervals.h (renamed from llvm/include/llvm/CodeGen/LiveIntervals.h) | 0 | ||||
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 4 |
3 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp index 21d3904cf07..b6a6613db61 100644 --- a/llvm/lib/CodeGen/LiveIntervals.cpp +++ b/llvm/lib/CodeGen/LiveIntervals.cpp @@ -16,7 +16,6 @@ //===----------------------------------------------------------------------===// #define DEBUG_TYPE "liveintervals" -#include "llvm/CodeGen/LiveIntervals.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/CodeGen/LiveVariables.h" #include "llvm/CodeGen/MachineFrameInfo.h" @@ -31,6 +30,7 @@ #include "Support/Debug.h" #include "Support/Statistic.h" #include "Support/STLExtras.h" +#include "LiveIntervals.h" #include <cmath> #include <iostream> #include <limits> diff --git a/llvm/include/llvm/CodeGen/LiveIntervals.h b/llvm/lib/CodeGen/LiveIntervals.h index 24bc8956b3f..24bc8956b3f 100644 --- a/llvm/include/llvm/CodeGen/LiveIntervals.h +++ b/llvm/lib/CodeGen/LiveIntervals.h diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 357a9fcd1a1..a3178466196 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -12,7 +12,6 @@ //===----------------------------------------------------------------------===// #define DEBUG_TYPE "regalloc" #include "llvm/Function.h" -#include "llvm/CodeGen/LiveIntervals.h" #include "llvm/CodeGen/LiveVariables.h" #include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/CodeGen/MachineFunctionPass.h" @@ -27,6 +26,7 @@ #include "Support/DepthFirstIterator.h" #include "Support/Statistic.h" #include "Support/STLExtras.h" +#include "LiveIntervals.h" #include <algorithm> using namespace llvm; @@ -562,6 +562,8 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur) // otherwise we spill all intervals aliasing the register with // minimum weight, rollback to the interval with the earliest // 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); toSpill[minReg] = true; for (const unsigned* as = mri_->getAliasSet(minReg); *as; ++as) |