summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalUnion.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-11 20:41:41 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-11 20:41:41 +0000
commit05ff9d1f6da438572c08e774fff11e29e70f3dfa (patch)
tree9ac923350861908da94d60e51376c39d2c0acfb5 /llvm/lib/CodeGen/LiveIntervalUnion.h
parent2ea19d1438d580cce288cd4722c9e04e0fd4c691 (diff)
downloadbcm5719-llvm-05ff9d1f6da438572c08e774fff11e29e70f3dfa.tar.gz
bcm5719-llvm-05ff9d1f6da438572c08e774fff11e29e70f3dfa.zip
Remove some dead code.
The InterferenceResult iterator turned out to be less important than we thought it would be. LiveIntervalUnion clients want higher level information, like the list of interfering virtual registers. llvm-svn: 137346
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalUnion.h')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalUnion.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.h b/llvm/lib/CodeGen/LiveIntervalUnion.h
index 5e78d5e8502..a024bde5815 100644
--- a/llvm/lib/CodeGen/LiveIntervalUnion.h
+++ b/llvm/lib/CodeGen/LiveIntervalUnion.h
@@ -124,16 +124,6 @@ public:
// Public default ctor.
InterferenceResult(): VirtRegI(), LiveUnionI() {}
- /// start - Return the start of the current overlap.
- SlotIndex start() const {
- return std::max(VirtRegI->start, LiveUnionI.start());
- }
-
- /// stop - Return the end of the current overlap.
- SlotIndex stop() const {
- return std::min(VirtRegI->end, LiveUnionI.stop());
- }
-
/// interference - Return the register that is interfering here.
LiveInterval *interference() const { return LiveUnionI.value(); }
@@ -145,15 +135,6 @@ public:
// Access the LiveUnion segment.
const SegmentIter &liveUnionPos() const { return LiveUnionI; }
-
- bool operator==(const InterferenceResult &IR) const {
- return VirtRegI == IR.VirtRegI && LiveUnionI == IR.LiveUnionI;
- }
- bool operator!=(const InterferenceResult &IR) const {
- return !operator==(IR);
- }
-
- void print(raw_ostream &OS, const TargetRegisterInfo *TRI) const;
};
/// Query interferences between a single live virtual register and a live
@@ -249,7 +230,6 @@ public:
/// Loop.
bool checkLoopInterference(MachineLoopRange*);
- void print(raw_ostream &OS, const TargetRegisterInfo *TRI);
private:
Query(const Query&); // DO NOT IMPLEMENT
void operator=(const Query&); // DO NOT IMPLEMENT
OpenPOWER on IntegriCloud