summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalUnion.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2010-10-26 22:58:24 +0000
committerAndrew Trick <atrick@apple.com>2010-10-26 22:58:24 +0000
commit3d26d5d5240fb3bfe121434d4881da22f4b35ba5 (patch)
treed95cc17f85c186b29d92b2f6fc9d5239821d1911 /lib/CodeGen/LiveIntervalUnion.cpp
parent86ed2324a6d2fa54d22afa96520de9e7c9fba28d (diff)
downloadllvm-3d26d5d5240fb3bfe121434d4881da22f4b35ba5.tar.gz
llvm-3d26d5d5240fb3bfe121434d4881da22f4b35ba5.tar.bz2
llvm-3d26d5d5240fb3bfe121434d4881da22f4b35ba5.tar.xz
Remove the vector of live vregs. I thought we would need to track
them, but hopefully we won't. And this is not the right data structure to do it anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalUnion.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalUnion.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/LiveIntervalUnion.cpp b/lib/CodeGen/LiveIntervalUnion.cpp
index 6e2cd0fc31..9a47b3569b 100644
--- a/lib/CodeGen/LiveIntervalUnion.cpp
+++ b/lib/CodeGen/LiveIntervalUnion.cpp
@@ -25,11 +25,6 @@ using namespace llvm;
// Consider coalescing adjacent segments to save space, even though it makes
// extraction more complicated.
void LiveIntervalUnion::unify(LiveInterval &lvr) {
- // Add this live virtual register to the union
- LiveVirtRegs::iterator pos = std::upper_bound(lvrs_.begin(), lvrs_.end(),
- &lvr, less_ptr<LiveInterval>());
- assert((pos == lvrs_.end() || *pos != &lvr) && "duplicate LVR insertion");
- lvrs_.insert(pos, &lvr);
// Insert each of the virtual register's live segments into the map
SegmentIter segPos = segments_.begin();
for (LiveInterval::iterator lvrI = lvr.begin(), lvrEnd = lvr.end();