summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-09 05:28:45 +0000
committerChris Lattner <sabre@nondot.org>2005-11-09 05:28:45 +0000
commit9a5ef20f5ed0551e02e4e6d7a41185a52187f5cf (patch)
tree7d11ae10790600be49f9afa68cd6c19c119936ca /lib/CodeGen/RegAllocLocal.cpp
parent7436b57de32333cc337b8c7cea208c8863eee793 (diff)
downloadllvm-9a5ef20f5ed0551e02e4e6d7a41185a52187f5cf.tar.gz
llvm-9a5ef20f5ed0551e02e4e6d7a41185a52187f5cf.tar.bz2
llvm-9a5ef20f5ed0551e02e4e6d7a41185a52187f5cf.tar.xz
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
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r--lib/CodeGen/RegAllocLocal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp
index 7288f067f6..184d9e27ba 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)