Remove PBQP-cost dimension sanity assertion in PBQP::Graph::addConstructedEdge.
authorLang Hames <lhames@gmail.com>
Wed, 26 Mar 2014 19:22:51 +0000 (19:22 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 26 Mar 2014 19:22:51 +0000 (19:22 +0000)
We're already effectively checking sanity for that in PBQP::Graph::addEdge.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204844 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/PBQP/Graph.h

index a57a639bf7a69375516761127d0bb444ae2d02b4..030197f174f48c98bf9cabd566cc7447d51e82e4 100644 (file)
@@ -212,13 +212,6 @@ namespace PBQP {
       }
 
       EdgeEntry &NE = getEdge(EId);
-      NodeEntry &N1 = getNode(NE.getN1Id());
-      NodeEntry &N2 = getNode(NE.getN2Id());
-
-      // Sanity check on matrix dimensions:
-      assert((N1.Costs->getLength() == NE.Costs->getRows()) &&
-             (N2.Costs->getLength() == NE.Costs->getCols()) &&
-             "Edge cost dimensions do not match node costs dimensions.");
 
       // Add the edge to the adjacency sets of its nodes.
       NE.connect(*this, EId);