[llvm] c3d8205 - [RegAllocFast] Don't convert MCRegUnit to MCRegister. NFC (#123705)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 07:03:27 PST 2025
Author: Craig Topper
Date: 2025-01-21T07:03:23-08:00
New Revision: c3d820553fa10368b7bf298674d978449416b11f
URL: https://github.com/llvm/llvm-project/commit/c3d820553fa10368b7bf298674d978449416b11f
DIFF: https://github.com/llvm/llvm-project/commit/c3d820553fa10368b7bf298674d978449416b11f.diff
LOG: [RegAllocFast] Don't convert MCRegUnit to MCRegister. NFC (#123705)
Added:
Modified:
llvm/lib/CodeGen/RegAllocFast.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 3863ca80bb44e9..2efccc155d4001 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -688,7 +688,7 @@ void RegAllocFastImpl::reloadAtBegin(MachineBasicBlock &MBB) {
if (PhysReg == 0 || LR.Error)
continue;
- MCRegister FirstUnit = *TRI->regunits(PhysReg).begin();
+ MCRegUnit FirstUnit = *TRI->regunits(PhysReg).begin();
if (RegUnitStates[FirstUnit] == regLiveIn)
continue;
@@ -758,7 +758,7 @@ bool RegAllocFastImpl::displacePhysReg(MachineInstr &MI, MCPhysReg PhysReg) {
void RegAllocFastImpl::freePhysReg(MCPhysReg PhysReg) {
LLVM_DEBUG(dbgs() << "Freeing " << printReg(PhysReg, TRI) << ':');
- MCRegister FirstUnit = *TRI->regunits(PhysReg).begin();
+ MCRegUnit FirstUnit = *TRI->regunits(PhysReg).begin();
switch (unsigned VirtReg = RegUnitStates[FirstUnit]) {
case regFree:
LLVM_DEBUG(dbgs() << '\n');
More information about the llvm-commits
mailing list