Skip to content

Commit c3d8205

Browse files
authored
[RegAllocFast] Don't convert MCRegUnit to MCRegister. NFC (#123705)
1 parent aeffc01 commit c3d8205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/RegAllocFast.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ void RegAllocFastImpl::reloadAtBegin(MachineBasicBlock &MBB) {
688688
if (PhysReg == 0 || LR.Error)
689689
continue;
690690

691-
MCRegister FirstUnit = *TRI->regunits(PhysReg).begin();
691+
MCRegUnit FirstUnit = *TRI->regunits(PhysReg).begin();
692692
if (RegUnitStates[FirstUnit] == regLiveIn)
693693
continue;
694694

@@ -758,7 +758,7 @@ bool RegAllocFastImpl::displacePhysReg(MachineInstr &MI, MCPhysReg PhysReg) {
758758
void RegAllocFastImpl::freePhysReg(MCPhysReg PhysReg) {
759759
LLVM_DEBUG(dbgs() << "Freeing " << printReg(PhysReg, TRI) << ':');
760760

761-
MCRegister FirstUnit = *TRI->regunits(PhysReg).begin();
761+
MCRegUnit FirstUnit = *TRI->regunits(PhysReg).begin();
762762
switch (unsigned VirtReg = RegUnitStates[FirstUnit]) {
763763
case regFree:
764764
LLVM_DEBUG(dbgs() << '\n');

0 commit comments

Comments
 (0)