Remove PBQP-cost dimension sanity assertion in PBQP::Graph::addConstructedEdge.

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
This commit is contained in:
Lang Hames 2014-03-26 19:22:51 +00:00
parent b397453155
commit 2ca8b98cdb

View 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);