FPURegCache: The invariant checking is very slow in debug mode. Let's only turn it on when we need it.

This commit is contained in:
Henrik Rydgård committed 2020-09-17 20:52:32 +02:00
1 parent 28b58ca05d
commit 608d082e49
1 file changed
+2 -2
+2 -2
View File
@@ -901,8 +901,8 @@ OpArg FPURegCache::GetDefaultLocation(int reg) const {
}
void FPURegCache::Invariant() const {
#ifdef _DEBUG
_dbg_assert_msg_(SanityCheck() == 0, "Sanity check failed: %d", SanityCheck());
#if 0
_assert_msg_(SanityCheck() == 0, "Sanity check failed: %d", SanityCheck());
#endif
}