mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Precompute interference for neighbor blocks as long as there is no interference.
This doesn't require seeking in the live interval union, so it is very cheap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -43,6 +43,9 @@ class InterferenceCache {
|
||||
/// change.
|
||||
unsigned Tag;
|
||||
|
||||
/// MF - The current function.
|
||||
MachineFunction *MF;
|
||||
|
||||
/// Indexes - Mapping block numbers to SlotIndex ranges.
|
||||
SlotIndexes *Indexes;
|
||||
|
||||
@@ -67,8 +70,9 @@ class InterferenceCache {
|
||||
public:
|
||||
Entry() : PhysReg(0), Tag(0), Indexes(0) {}
|
||||
|
||||
void clear(SlotIndexes *indexes) {
|
||||
void clear(MachineFunction *mf, SlotIndexes *indexes) {
|
||||
PhysReg = 0;
|
||||
MF = mf;
|
||||
Indexes = indexes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user