mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Represent RegUnit liveness with LiveRange instance
Previously LiveInterval has been used, but having a spill weight and register number is unnecessary for a register unit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -204,11 +204,11 @@ void InterferenceCache::Entry::update(unsigned MBBNum) {
|
||||
// Fixed interference.
|
||||
for (unsigned i = 0, e = RegUnits.size(); i != e; ++i) {
|
||||
LiveInterval::iterator &I = RegUnits[i].FixedI;
|
||||
LiveInterval *LI = RegUnits[i].Fixed;
|
||||
if (I == LI->end() || I->start >= Stop)
|
||||
LiveRange *LR = RegUnits[i].Fixed;
|
||||
if (I == LR->end() || I->start >= Stop)
|
||||
continue;
|
||||
I = LI->advanceTo(I, Stop);
|
||||
bool Backup = I == LI->end() || I->start >= Stop;
|
||||
I = LR->advanceTo(I, Stop);
|
||||
bool Backup = I == LR->end() || I->start >= Stop;
|
||||
if (Backup)
|
||||
--I;
|
||||
SlotIndex StopI = I->end;
|
||||
|
Reference in New Issue
Block a user