llvm.org GIT mirror llvm / 2ca8b98
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 Lang Hames 6 years ago
1 changed file(s) with 0 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
211211 }
212212
213213 EdgeEntry &NE = getEdge(EId);
214 NodeEntry &N1 = getNode(NE.getN1Id());
215 NodeEntry &N2 = getNode(NE.getN2Id());
216
217 // Sanity check on matrix dimensions:
218 assert((N1.Costs->getLength() == NE.Costs->getRows()) &&
219 (N2.Costs->getLength() == NE.Costs->getCols()) &&
220 "Edge cost dimensions do not match node costs dimensions.");
221214
222215 // Add the edge to the adjacency sets of its nodes.
223216 NE.connect(*this, EId);