diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2020-10-24 00:36:51 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2020-10-24 00:36:51 +0000 |
commit | 8f492f646781ed6c894775f95846520728d9119e (patch) | |
tree | 9a255a0c779638f258cfd66b318d40174c98e7b3 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | e7021232e66f4a8e21f2bcd77d9841d1fb414245 (diff) | |
download | llvm-8f492f646781ed6c894775f95846520728d9119e.zip llvm-8f492f646781ed6c894775f95846520728d9119e.tar.gz llvm-8f492f646781ed6c894775f95846520728d9119e.tar.bz2 |
Remove unused verifyRegStateMapping() function in RegAllocFast (NFC)
This fixes compiler warning when building with assertions.
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 03411be..78a797d 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -213,9 +213,6 @@ namespace { void allocateInstruction(MachineInstr &MI); void handleDebugValue(MachineInstr &MI); -#ifndef NDEBUG - bool verifyRegStateMapping(const LiveReg &LR) const; -#endif bool usePhysReg(MachineInstr &MI, MCPhysReg PhysReg); bool definePhysReg(MachineInstr &MI, MCPhysReg PhysReg); bool displacePhysReg(MachineInstr &MI, MCPhysReg PhysReg); @@ -1380,17 +1377,6 @@ void RegAllocFast::handleDebugValue(MachineInstr &MI) { LiveDbgValueMap[Reg].push_back(&MI); } -#ifndef NDEBUG -bool RegAllocFast::verifyRegStateMapping(const LiveReg &LR) const { - for (MCRegUnitIterator UI(LR.PhysReg, TRI); UI.isValid(); ++UI) { - if (RegUnitStates[*UI] != LR.VirtReg) - return false; - } - - return true; -} -#endif - void RegAllocFast::allocateBasicBlock(MachineBasicBlock &MBB) { this->MBB = &MBB; LLVM_DEBUG(dbgs() << "\nAllocating " << MBB); |