mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add an InterferenceCache class for caching per-block interference ranges.
When the greedy register allocator is splitting multiple global live ranges, it tends to look at the same interference data many times. The InterferenceCache class caches queries for unaltered LiveIntervalUnions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1328,6 +1328,10 @@ public:
|
||||
/// const_iterator - Create an iterator that isn't pointing anywhere.
|
||||
const_iterator() : map(0) {}
|
||||
|
||||
/// setMap - Change the map iterated over. This call must be followed by a
|
||||
/// call to goToBegin(), goToEnd(), or find()
|
||||
void setMap(const IntervalMap &m) { map = const_cast<IntervalMap*>(&m); }
|
||||
|
||||
/// valid - Return true if the current position is valid, false for end().
|
||||
bool valid() const { return path.valid(); }
|
||||
|
||||
|
Reference in New Issue
Block a user