diff options
author | Christopher Di Bella <cjdb@google.com> | 2025-02-20 22:02:15 +0000 |
---|---|---|
committer | Christopher Di Bella <cjdb@google.com> | 2025-02-20 22:06:21 +0000 |
commit | 309e3ca08130f04ef6b0b320ee3e43575fa7bf99 (patch) | |
tree | 1be660174ca19dab512044c254d80c77935be335 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | a67566b185c56ce84f6b858e431e4d412b40fdaa (diff) | |
download | llvm-309e3ca08130f04ef6b0b320ee3e43575fa7bf99.zip llvm-309e3ca08130f04ef6b0b320ee3e43575fa7bf99.tar.gz llvm-309e3ca08130f04ef6b0b320ee3e43575fa7bf99.tar.bz2 |
Revert "[CodeGen] Remove static member function Register::isPhysicalRegister. NFC"
This reverts commit 5fadb3d680909ab30b37eb559f80046b5a17045e.
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 2809056..14128da 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -708,7 +708,7 @@ void RegAllocFastImpl::reloadAtBegin(MachineBasicBlock &MBB) { /// not used by a virtreg. Kill the physreg, marking it free. This may add /// implicit kills to MO->getParent() and invalidate MO. bool RegAllocFastImpl::usePhysReg(MachineInstr &MI, MCPhysReg Reg) { - assert(Register(Reg).isPhysical() && "expected physreg"); + assert(Register::isPhysicalRegister(Reg) && "expected physreg"); bool displacedAny = displacePhysReg(MI, Reg); setPhysRegState(Reg, regPreAssigned); markRegUsedInInstr(Reg); @@ -1289,7 +1289,7 @@ void RegAllocFastImpl::dumpState() const { assert(VirtReg.isVirtual() && "Bad map key"); MCPhysReg PhysReg = LR.PhysReg; if (PhysReg != 0) { - assert(Register(PhysReg).isPhysical() && "mapped to physreg"); + assert(Register::isPhysicalRegister(PhysReg) && "mapped to physreg"); for (MCRegUnit Unit : TRI->regunits(PhysReg)) { assert(RegUnitStates[Unit] == VirtReg && "inverse map valid"); } |