diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-09 05:28:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-09 05:28:45 +0000 |
commit | 9a5ef20f5ed0551e02e4e6d7a41185a52187f5cf (patch) | |
tree | 7d11ae10790600be49f9afa68cd6c19c119936ca /lib/CodeGen/RegAllocLocal.cpp | |
parent | 7436b57de32333cc337b8c7cea208c8863eee793 (diff) |
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.cpp | 3 |
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) |