[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLocal.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 8 21:28:56 PST 2005



Changes in directory llvm/lib/CodeGen:

RegAllocLocal.cpp updated: 1.74 -> 1.75
---
Log message:

Disable some overly-aggressive checking code.  This speeds up the local
allocator from 23s to 11s on kc++ in debug mode.


---
Diffs of the changes:  (+2 -1)

 RegAllocLocal.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.74 llvm/lib/CodeGen/RegAllocLocal.cpp:1.75
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.74	Thu Sep 29 20:29:00 2005
+++ llvm/lib/CodeGen/RegAllocLocal.cpp	Tue Nov  8 23:28:45 2005
@@ -633,7 +633,8 @@
       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)






More information about the llvm-commits mailing list