summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocBase.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-08 01:06:06 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-08 01:06:06 +0000
commit5885e9940571e81deeec6a0cdb06bb8cad0bbc53 (patch)
treeb7db408684c058848d49bb9f96f7e8bbe0a50b8e /llvm/lib/CodeGen/RegAllocBase.h
parent72ce453c739c0c7bf6fae61bc3a3ac97a2a5314f (diff)
downloadbcm5719-llvm-5885e9940571e81deeec6a0cdb06bb8cad0bbc53.tar.gz
bcm5719-llvm-5885e9940571e81deeec6a0cdb06bb8cad0bbc53.zip
Move RABasic::addMBBLiveIns to the base class, it is generally useful.
Minor optimization to the use of IntervalMap iterators. They are fairly heavyweight, so prefer SI.valid() over SI != end(). llvm-svn: 121217
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBase.h')
-rw-r--r--llvm/lib/CodeGen/RegAllocBase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBase.h b/llvm/lib/CodeGen/RegAllocBase.h
index 32f5e0870ed..7f38c9b95a9 100644
--- a/llvm/lib/CodeGen/RegAllocBase.h
+++ b/llvm/lib/CodeGen/RegAllocBase.h
@@ -149,6 +149,9 @@ protected:
bool spillInterferences(LiveInterval &VirtReg, unsigned PhysReg,
SmallVectorImpl<LiveInterval*> &SplitVRegs);
+ /// addMBBLiveIns - Add physreg liveins to basic blocks.
+ void addMBBLiveIns(MachineFunction *);
+
#ifndef NDEBUG
// Verify each LiveIntervalUnion.
void verify();
OpenPOWER on IntegriCloud