diff --git a/llvm/include/llvm/IR/Dominators.h b/llvm/include/llvm/IR/Dominators.h --- a/llvm/include/llvm/IR/Dominators.h +++ b/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; diff --git a/llvm/include/llvm/Support/Debug.h b/llvm/include/llvm/Support/Debug.h --- a/llvm/include/llvm/Support/Debug.h +++ b/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;