@@ -276,7 +276,7 @@ class RegAllocFastImpl {
276276 // Assign index for each instruction to quickly determine dominance.
277277 InstrPosIndexes PosIndexes;
278278
279- void setPhysRegState (MCPhysReg PhysReg, unsigned NewState);
279+ void setPhysRegState (MCRegister PhysReg, unsigned NewState);
280280 bool isPhysRegFree (MCPhysReg PhysReg) const ;
281281
282282 // / Mark a physreg as used in this instruction.
@@ -449,7 +449,7 @@ bool RegAllocFastImpl::shouldAllocateRegister(const Register Reg) const {
449449 return ShouldAllocateRegisterImpl (*TRI, *MRI, Reg);
450450}
451451
452- void RegAllocFastImpl::setPhysRegState (MCPhysReg PhysReg, unsigned NewState) {
452+ void RegAllocFastImpl::setPhysRegState (MCRegister PhysReg, unsigned NewState) {
453453 for (MCRegUnit Unit : TRI->regunits (PhysReg))
454454 RegUnitStates[Unit] = NewState;
455455}
@@ -671,7 +671,7 @@ void RegAllocFastImpl::reloadAtBegin(MachineBasicBlock &MBB) {
671671 return ;
672672
673673 for (MachineBasicBlock::RegisterMaskPair P : MBB.liveins ()) {
674- MCPhysReg Reg = P.PhysReg ;
674+ MCRegister Reg = P.PhysReg ;
675675 // Set state to live-in. This possibly overrides mappings to virtual
676676 // registers but we don't care anymore at this point.
677677 setPhysRegState (Reg, regLiveIn);
0 commit comments