[PATCH] D34894: [Dominators] Do not perform expensive checks by default. Fix PR33656.

Jakub Kuderski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 30 09:33:31 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL306839: [Dominators] Do not perform expensive checks by default. Fix PR33656. (authored by kuhar).

Changed prior to commit:
  https://reviews.llvm.org/D34894?vs=104877&id=104879#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D34894

Files:
  llvm/trunk/lib/IR/Dominators.cpp


Index: llvm/trunk/lib/IR/Dominators.cpp
===================================================================
--- llvm/trunk/lib/IR/Dominators.cpp
+++ llvm/trunk/lib/IR/Dominators.cpp
@@ -292,7 +292,8 @@
 }
 
 void DominatorTree::verifyDomTree() const {
-  if (!verify()) {
+  // Perform the expensive checks only when VerifyDomInfo is set.
+  if (VerifyDomInfo && !verify()) {
     errs() << "\n~~~~~~~~~~~\n\t\tDomTree verification failed!\n~~~~~~~~~~~\n";
     print(errs());
     abort();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34894.104879.patch
Type: text/x-patch
Size: 491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170630/71db8812/attachment.bin>


More information about the llvm-commits mailing list