Disable some overly-aggressive checking code. This speeds up the local

allocator from 23s to 11s on kc++ in debug mode.

llvm-svn: 24255
This commit is contained in:
Chris Lattner 2005-11-09 05:28:45 +00:00
parent b7cad90e55
commit 35ecaa76fa
1 changed files with 2 additions and 1 deletions

View File

@ -633,7 +633,8 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) {
else else
removePhysReg(i); removePhysReg(i);
#ifndef NDEBUG #if 0
// This checking code is very expensive.
bool AllOk = true; bool AllOk = true;
for (unsigned i = MRegisterInfo::FirstVirtualRegister, for (unsigned i = MRegisterInfo::FirstVirtualRegister,
e = MF->getSSARegMap()->getLastVirtReg(); i <= e; ++i) e = MF->getSSARegMap()->getLastVirtReg(); i <= e; ++i)