From 4f724dce428dfe79489de17eef1809aa40324eef Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 25 Jan 2017 17:15:48 +0000 Subject: Revert "Do not verify dominator tree if it has no roots" This reverts commit r293033, per Danny's comment. In short, we require domtrees to have roots at all times. llvm-svn: 293075 --- llvm/lib/CodeGen/MachineDominators.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/CodeGen/MachineDominators.cpp') diff --git a/llvm/lib/CodeGen/MachineDominators.cpp b/llvm/lib/CodeGen/MachineDominators.cpp index 4e348877697..303a6a9263b 100644 --- a/llvm/lib/CodeGen/MachineDominators.cpp +++ b/llvm/lib/CodeGen/MachineDominators.cpp @@ -143,10 +143,6 @@ void MachineDominatorTree::applySplitCriticalEdges() const { } void MachineDominatorTree::verifyDomTree() const { - if (getRoots().empty()) - // If dominator tree is unavailable, skip verification. - return; - MachineFunction &F = *getRoot()->getParent(); MachineDominatorTree OtherDT; -- cgit v1.2.3