Disable some overly-aggressive checking code. This speeds up the local
authorChris Lattner <sabre@nondot.org>
Wed, 9 Nov 2005 05:28:45 +0000 (05:28 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Nov 2005 05:28:45 +0000 (05:28 +0000)
allocator from 23s to 11s on kc++ in debug mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24255 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocLocal.cpp

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