Removed an assert which was causing significant slowdowns in debug builds.
authorLang Hames <lhames@gmail.com>
Thu, 5 Nov 2009 00:52:28 +0000 (00:52 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 5 Nov 2009 00:52:28 +0000 (00:52 +0000)
This assert was very conservative to begin with (the error condition is well
covered by tests elsewhere in the code) so we won't miss much by removing it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86088 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SlotIndexes.h

index 31623f4c0a4b2509736a202aeb083f711757d301..1d02e06ae772542e94d14b2027731a0b3154f6ea 100644 (file)
@@ -131,7 +131,6 @@ namespace llvm {
     }
 
     IndexListEntry& entry() const {
-      assert(lie.getPointer() != 0 && "Use of invalid index.");
       return *lie.getPointer();
     }