mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Move CalculateRegClass to MRI::recomputeRegClass.
This function doesn't have anything to do with spill weights, and MRI already has functions for manipulating the register class of a virtual register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137123 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -319,9 +319,12 @@ void LiveRangeEdit::calculateRegClassAndHint(MachineFunction &MF,
|
||||
LiveIntervals &LIS,
|
||||
const MachineLoopInfo &Loops) {
|
||||
VirtRegAuxInfo VRAI(MF, LIS, Loops);
|
||||
MachineRegisterInfo &MRI = MF.getRegInfo();
|
||||
for (iterator I = begin(), E = end(); I != E; ++I) {
|
||||
LiveInterval &LI = **I;
|
||||
VRAI.CalculateRegClass(LI.reg);
|
||||
if (MRI.recomputeRegClass(LI.reg, MF.getTarget()))
|
||||
DEBUG(dbgs() << "Inflated " << PrintReg(LI.reg) << " to "
|
||||
<< MRI.getRegClass(LI.reg)->getName() << '\n');
|
||||
VRAI.CalculateWeightAndHint(LI);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user