forked from OSchip/llvm-project
RegAllocFast: Avoid unused method warning in release builds
This commit is contained in:
parent
2f6bb2a692
commit
0671a4c508
|
@ -184,7 +184,10 @@ namespace {
|
|||
bool isLastUseOfLocalReg(const MachineOperand &MO) const;
|
||||
|
||||
void addKillFlag(const LiveReg &LRI);
|
||||
#ifndef NDEBUG
|
||||
bool verifyRegStateMapping(const LiveReg &LR) const;
|
||||
#endif
|
||||
|
||||
void killVirtReg(LiveReg &LR);
|
||||
void killVirtReg(Register VirtReg);
|
||||
void spillVirtReg(MachineBasicBlock::iterator MI, LiveReg &LR);
|
||||
|
@ -381,6 +384,7 @@ void RegAllocFast::addKillFlag(const LiveReg &LR) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
bool RegAllocFast::verifyRegStateMapping(const LiveReg &LR) const {
|
||||
for (MCRegUnitIterator UI(LR.PhysReg, TRI); UI.isValid(); ++UI) {
|
||||
if (RegUnitStates[*UI] != LR.VirtReg)
|
||||
|
@ -389,6 +393,7 @@ bool RegAllocFast::verifyRegStateMapping(const LiveReg &LR) const {
|
|||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
/// Mark virtreg as no longer available.
|
||||
void RegAllocFast::killVirtReg(LiveReg &LR) {
|
||||
|
|
Loading…
Reference in New Issue