summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalUnion.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
commit1b19dc1d8b7594434ea9a157bfe2ae68eabf9f05 (patch)
tree308afe1bb40b417cdf3afe11efada61850aa7405 /lib/CodeGen/LiveIntervalUnion.h
parent255eafbd498e7d41ceef45ee0ad13bfde573ff82 (diff)
downloadllvm-1b19dc1d8b7594434ea9a157bfe2ae68eabf9f05.tar.gz
llvm-1b19dc1d8b7594434ea9a157bfe2ae68eabf9f05.tar.bz2
llvm-1b19dc1d8b7594434ea9a157bfe2ae68eabf9f05.tar.xz
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(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalUnion.h')
-rw-r--r--lib/CodeGen/LiveIntervalUnion.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalUnion.h b/lib/CodeGen/LiveIntervalUnion.h
index 2068149ca0..0c9a13a606 100644
--- a/lib/CodeGen/LiveIntervalUnion.h
+++ b/lib/CodeGen/LiveIntervalUnion.h
@@ -75,6 +75,7 @@ public:
// by their starting position.
SegmentIter begin() { return Segments.begin(); }
SegmentIter end() { return Segments.end(); }
+ bool empty() { return Segments.empty(); }
// Add a live virtual register to this union and merge its segments.
void unify(LiveInterval &VirtReg);