forked from OSchip/llvm-project
Remove unused verifyRegStateMapping() function in RegAllocFast (NFC)
This fixes compiler warning when building with assertions.
This commit is contained in:
parent
e7021232e6
commit
8f492f6467
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue