summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit5f88cc34e14dc3901628cf9642db61308e14746d (patch)
treef35b52140c676ade21456d608e6ea5ccfd92abd9 /llvm/lib
parent825b2d1946e7a7cf0911e57afac8c475c80c5bcd (diff)
downloadbcm5719-llvm-5f88cc34e14dc3901628cf9642db61308e14746d.tar.gz
bcm5719-llvm-5f88cc34e14dc3901628cf9642db61308e14746d.zip
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. llvm-svn: 117412
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalUnion.cpp5
-rw-r--r--llvm/lib/CodeGen/LiveIntervalUnion.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.cpp b/llvm/lib/CodeGen/LiveIntervalUnion.cpp
index 6e2cd0fc313..9a47b3569b4 100644
--- a/llvm/lib/CodeGen/LiveIntervalUnion.cpp
+++ b/llvm/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();
diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.h b/llvm/lib/CodeGen/LiveIntervalUnion.h
index 1eb380fa171..0beadfa47ee 100644
--- a/llvm/lib/CodeGen/LiveIntervalUnion.h
+++ b/llvm/lib/CodeGen/LiveIntervalUnion.h
@@ -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
OpenPOWER on IntegriCloud