Remove the vector of live vregs. I thought we would need to track
authorAndrew Trick <atrick@apple.com>
Tue, 26 Oct 2010 22:58:24 +0000 (22:58 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 26 Oct 2010 22:58:24 +0000 (22:58 +0000)
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

lib/CodeGen/LiveIntervalUnion.cpp
lib/CodeGen/LiveIntervalUnion.h

index 6e2cd0fc31302e3a72fc2965df3f5e22f7d1f000..9a47b3569b49e907eed5dbd4e4d85c45defdd660 100644 (file)
@@ -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();
index 1eb380fa171f9e6919b43354e320676f2cf6b32b..0beadfa47ee3e6afe00768220c3e3fc749303b4f 100644 (file)
@@ -97,7 +97,6 @@ public:
 private:
   unsigned repReg_;        // representative register number
   LiveSegments segments_;  // union of virtual reg segements
-  LiveVirtRegs lvrs_;      // set of live virtual regs in the union
 
 public:
   // default ctor avoids placement new