mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Track new virtual registers by register number.
Track new virtual registers by register number, rather than by the live interval created for them. This is the first step in separating the creation of new virtual registers and new live intervals. Eventually live intervals will be created and populated on demand after the virtual registers have been created and used in instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -37,7 +37,7 @@ LiveInterval &LiveRangeEdit::createFrom(unsigned OldReg) {
|
||||
VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg));
|
||||
}
|
||||
LiveInterval &LI = LIS.getOrCreateInterval(VReg);
|
||||
NewRegs.push_back(&LI);
|
||||
NewRegs.push_back(VReg);
|
||||
return LI;
|
||||
}
|
||||
|
||||
@ -392,8 +392,8 @@ LiveRangeEdit::calculateRegClassAndHint(MachineFunction &MF,
|
||||
const MachineLoopInfo &Loops,
|
||||
const MachineBlockFrequencyInfo &MBFI) {
|
||||
VirtRegAuxInfo VRAI(MF, LIS, Loops, MBFI);
|
||||
for (iterator I = begin(), E = end(); I != E; ++I) {
|
||||
LiveInterval &LI = **I;
|
||||
for (unsigned I = 0, Size = size(); I < Size; ++I) {
|
||||
LiveInterval &LI = LIS.getInterval(get(I));
|
||||
if (MRI.recomputeRegClass(LI.reg, MF.getTarget()))
|
||||
DEBUG(dbgs() << "Inflated " << PrintReg(LI.reg) << " to "
|
||||
<< MRI.getRegClass(LI.reg)->getName() << '\n');
|
||||
|
Reference in New Issue
Block a user