mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Move register class name strings to a single array in MCRegisterInfo to reduce static table size and number of relocation entries.
Indices into the table are stored in each MCRegisterClass instead of a pointer. A new method, getRegClassName, is added to MCRegisterInfo and TargetRegisterInfo to lookup the string in the table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -411,8 +411,11 @@ LiveRangeEdit::calculateRegClassAndHint(MachineFunction &MF,
|
||||
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');
|
||||
DEBUG({
|
||||
const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
|
||||
dbgs() << "Inflated " << PrintReg(LI.reg) << " to "
|
||||
<< TRI->getRegClassName(MRI.getRegClass(LI.reg)) << '\n'
|
||||
});
|
||||
VRAI.calculateSpillWeightAndHint(LI);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user