From 9a5ef20f5ed0551e02e4e6d7a41185a52187f5cf 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24255 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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) -- 2.34.1