From 0da993751775f53c57bc9100b152626a8b380dfb Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Fri, 29 Apr 2016 15:22:48 +0000 Subject: Unify XDEBUG and EXPENSIVE_CHECKS (into the latter), and add an option to the cmake build to enable them. Summary: Historically, we had a switch in the Makefiles for turning on "expensive checks". This has never been ported to the cmake build, but the (dead-ish) code is still around. This will also make it easier to turn it on in buildbots. Reviewers: chandlerc Subscribers: jyknight, mzolotukhin, RKSimon, gberry, llvm-commits Differential Revision: http://reviews.llvm.org/D19723 llvm-svn: 268050 --- llvm/lib/Transforms/Utils/MemorySSA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils/MemorySSA.cpp') diff --git a/llvm/lib/Transforms/Utils/MemorySSA.cpp b/llvm/lib/Transforms/Utils/MemorySSA.cpp index 90c23e1e144..97c728bbe20 100644 --- a/llvm/lib/Transforms/Utils/MemorySSA.cpp +++ b/llvm/lib/Transforms/Utils/MemorySSA.cpp @@ -805,7 +805,7 @@ void CachingMemorySSAWalker::invalidateInfo(MemoryAccess *MA) { CachedUpwardsClobberingAccess.clear(); } -#ifdef XDEBUG +#ifdef EXPENSIVE_CHECKS // Run this only when expensive checks are enabled. verifyRemoved(MA); #endif -- cgit v1.2.3