From 608d082e49e041fb5a67b0aaf395e9875ab958d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 17 Sep 2020 18:54:17 +0200 Subject: [PATCH] FPURegCache: The invariant checking is very slow in debug mode. Let's only turn it on when we need it. --- Core/MIPS/x86/RegCacheFPU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/MIPS/x86/RegCacheFPU.cpp b/Core/MIPS/x86/RegCacheFPU.cpp index 26e1e0dd55..e217bfc9e7 100644 --- a/Core/MIPS/x86/RegCacheFPU.cpp +++ b/Core/MIPS/x86/RegCacheFPU.cpp @@ -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 }