mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +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:
@@ -1466,9 +1466,9 @@ void RAGreedy::calcGapWeights(unsigned PhysReg,
|
||||
|
||||
// Add fixed interference.
|
||||
for (MCRegUnitIterator Units(PhysReg, TRI); Units.isValid(); ++Units) {
|
||||
const LiveInterval &LI = LIS->getRegUnit(*Units);
|
||||
LiveInterval::const_iterator I = LI.find(StartIdx);
|
||||
LiveInterval::const_iterator E = LI.end();
|
||||
const LiveRange &LR = LIS->getRegUnit(*Units);
|
||||
LiveRange::const_iterator I = LR.find(StartIdx);
|
||||
LiveRange::const_iterator E = LR.end();
|
||||
|
||||
// Same loop as above. Mark any overlapped gaps as HUGE_VALF.
|
||||
for (unsigned Gap = 0; I != E && I->start < StopIdx; ++I) {
|
||||
|
Reference in New Issue
Block a user