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:
Jakob Stoklund Olesen
2011-04-09 02:59:05 +00:00
parent 5fc25cccff
commit 9d29cbad32
2 changed files with 37 additions and 22 deletions
+5 -1
View File
@@ -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;
}