[PATCH] D109395: IR: move the declaration of `VerifyDomInfo` (NFC)

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 8 08:36:57 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG480a5a2d96c5: IR: move the declaration of `VerifyDomInfo` (NFC) (authored by compnerd).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109395/new/

https://reviews.llvm.org/D109395

Files:
  llvm/include/llvm/IR/Dominators.h
  llvm/include/llvm/Support/Debug.h


Index: llvm/include/llvm/Support/Debug.h
===================================================================
--- llvm/include/llvm/Support/Debug.h
+++ llvm/include/llvm/Support/Debug.h
@@ -85,10 +85,6 @@
 /// turning the checks on without need to recompile.
 /// \{
 
-/// Enables verification of dominator trees.
-///
-extern bool VerifyDomInfo;
-
 /// Enables verification of loop info.
 ///
 extern bool VerifyLoopInfo;
Index: llvm/include/llvm/IR/Dominators.h
===================================================================
--- llvm/include/llvm/IR/Dominators.h
+++ llvm/include/llvm/IR/Dominators.h
@@ -277,6 +277,12 @@
   PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
 };
 
+/// Enables verification of dominator trees.
+///
+/// This check is expensive and is disabled by default.  `-verify-dom-info`
+/// allows selectively enabling the check without needing to recompile.
+extern bool VerifyDomInfo;
+
 /// Legacy analysis pass which computes a \c DominatorTree.
 class DominatorTreeWrapperPass : public FunctionPass {
   DominatorTree DT;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109395.371349.patch
Type: text/x-patch
Size: 1072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210908/01eaebb4/attachment.bin>


More information about the llvm-commits mailing list