[llvm] a67c7de - Revert "[DomTree] Assert that blocks in queries aren't from another function"

Daniil Suchkov via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 1 14:51:54 PDT 2021


Author: Daniil Suchkov
Date: 2021-10-01T21:51:00Z
New Revision: a67c7deae72af3d4294a2999fd1fb920690319b7

URL: https://github.com/llvm/llvm-project/commit/a67c7deae72af3d4294a2999fd1fb920690319b7
DIFF: https://github.com/llvm/llvm-project/commit/a67c7deae72af3d4294a2999fd1fb920690319b7.diff

LOG: Revert "[DomTree] Assert that blocks in queries aren't from another function"

This reverts commit 86046516e4f4527213c595c154c9971d81a49601.
This assertion fails on https://lab.llvm.org/buildbot/#/builders/98/builds/6690
Reverting it for now.

Added: 
    

Modified: 
    llvm/include/llvm/Support/GenericDomTree.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/GenericDomTree.h b/llvm/include/llvm/Support/GenericDomTree.h
index 92af9891b0e90..21fd50763b1f2 100644
--- a/llvm/include/llvm/Support/GenericDomTree.h
+++ b/llvm/include/llvm/Support/GenericDomTree.h
@@ -349,9 +349,6 @@ class DominatorTreeBase {
   /// may (but is not required to) be null for a forward (backwards)
   /// statically unreachable block.
   DomTreeNodeBase<NodeT> *getNode(const NodeT *BB) const {
-    assert((!BB || !BB->getParent() || BB->getParent() == Parent) &&
-           "A node from another function!");
-
     auto I = DomTreeNodes.find(BB);
     if (I != DomTreeNodes.end())
       return I->second.get();


        


More information about the llvm-commits mailing list