summaryrefslogtreecommitdiff
path: root/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
commitfe026e182993a94381d197f140b19b999c3e17ec (patch)
tree3aa746677623a546baa2fd133eca360b84dfdc78 /lib/CodeGen/LiveIntervalUnion.h
parent9029cf20e1158dbca9c95da72a646d467e871525 (diff)
downloadllvm-fe026e182993a94381d197f140b19b999c3e17ec.tar.gz
llvm-fe026e182993a94381d197f140b19b999c3e17ec.tar.bz2
llvm-fe026e182993a94381d197f140b19b999c3e17ec.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalUnion.h')
-rw-r--r--lib/CodeGen/LiveIntervalUnion.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveIntervalUnion.h b/lib/CodeGen/LiveIntervalUnion.h
index 570ad94b77..8f4bb00c94 100644
--- a/lib/CodeGen/LiveIntervalUnion.h
+++ b/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();
};
};