summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalUnion.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-11 22:46:04 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-11 22:46:04 +0000
commitcd14efaec2e2b58438adf55f4965dc3f92942222 (patch)
treeb9ddcf3a02a97a3a7aadf89e3af4ca592273e566 /llvm/lib/CodeGen/LiveIntervalUnion.h
parent79d60d0e9463dda8a2afb3388868bfce46145143 (diff)
downloadbcm5719-llvm-cd14efaec2e2b58438adf55f4965dc3f92942222.tar.gz
bcm5719-llvm-cd14efaec2e2b58438adf55f4965dc3f92942222.zip
Eliminate the last use of InterferenceResult.
The Query class now holds two iterators instead of an InterferenceResult instance. The iterators are used as bookmarks for repeated collectInterferingVRegs calls. llvm-svn: 137380
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalUnion.h')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalUnion.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.h b/llvm/lib/CodeGen/LiveIntervalUnion.h
index 570ad94b77e..8f4bb00c94b 100644
--- a/llvm/lib/CodeGen/LiveIntervalUnion.h
+++ b/llvm/lib/CodeGen/LiveIntervalUnion.h
@@ -142,7 +142,8 @@ public:
class Query {
LiveIntervalUnion *LiveUnion;
LiveInterval *VirtReg;
- InterferenceResult FirstInterference;
+ LiveInterval::iterator VirtRegI; // current position in VirtReg
+ SegmentIter LiveUnionI; // current position in LiveUnion
SmallVector<LiveInterval*,4> InterferingVRegs;
bool CheckedFirstInterference;
bool SeenAllInterferences;
@@ -217,8 +218,7 @@ public:
void operator=(const Query&); // DO NOT IMPLEMENT
// Private interface for queries
- const InterferenceResult &firstInterference();
- void findIntersection(InterferenceResult &IR) const;
+ void findIntersection();
};
};
OpenPOWER on IntegriCloud