From: Chris Lattner Date: Wed, 9 Nov 2005 05:28:45 +0000 (+0000) Subject: Disable some overly-aggressive checking code. This speeds up the local X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9a5ef20f5ed0551e02e4e6d7a41185a52187f5cf;p=oota-llvm.git Disable some overly-aggressive checking code. This speeds up the local 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 --- diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp index 7288f067f6b..184d9e27ba3 100644 --- a/lib/CodeGen/RegAllocLocal.cpp +++ b/lib/CodeGen/RegAllocLocal.cpp @@ -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)