From 90e4c8a2a734e092d28b567f0d7907f802959f09 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 9 Nov 2005 05:28:45 +0000 Subject: [PATCH] Disable some overly-aggressive checking code. This speeds up the local allocator from 23s to 11s on kc++ in debug mode. llvm-svn: 24255 --- lib/CodeGen/RegAllocLocal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)