File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,10 @@ namespace {
184
184
bool isLastUseOfLocalReg (const MachineOperand &MO) const ;
185
185
186
186
void addKillFlag (const LiveReg &LRI);
187
+ #ifndef NDEBUG
187
188
bool verifyRegStateMapping (const LiveReg &LR) const ;
189
+ #endif
190
+
188
191
void killVirtReg (LiveReg &LR);
189
192
void killVirtReg (Register VirtReg);
190
193
void spillVirtReg (MachineBasicBlock::iterator MI, LiveReg &LR);
@@ -381,6 +384,7 @@ void RegAllocFast::addKillFlag(const LiveReg &LR) {
381
384
}
382
385
}
383
386
387
+ #ifndef NDEBUG
384
388
bool RegAllocFast::verifyRegStateMapping (const LiveReg &LR) const {
385
389
for (MCRegUnitIterator UI (LR.PhysReg , TRI); UI.isValid (); ++UI) {
386
390
if (RegUnitStates[*UI] != LR.VirtReg )
@@ -389,6 +393,7 @@ bool RegAllocFast::verifyRegStateMapping(const LiveReg &LR) const {
389
393
390
394
return true ;
391
395
}
396
+ #endif
392
397
393
398
// / Mark virtreg as no longer available.
394
399
void RegAllocFast::killVirtReg (LiveReg &LR) {
You can’t perform that action at this time.
0 commit comments