llvm.org GIT mirror llvm / 8a1871d
Fix some -Asserts unused variable warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78447 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 11 years ago
2 changed file(s) with 5 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
137137 NodeEntry &node1Entry = getNodeEntry(newEdgeEntry.getNode1Itr()),
138138 &node2Entry = getNodeEntry(newEdgeEntry.getNode2Itr());
139139
140 unsigned n1Len = node1Entry.getCosts().getLength(),
141 n2Len = node2Entry.getCosts().getLength(),
142 mRows = newEdgeEntry.getCosts().getRows(),
143 mCols = newEdgeEntry.getCosts().getCols();
144
145140 // Sanity check on matrix dimensions.
146 assert((n1Len == mRows) && (n2Len == mCols) &&
141 assert((node1Entry.getCosts().getLength() ==
142 newEdgeEntry.getCosts().getRows()) &&
143 (node2Entry.getCosts().getLength() ==
144 newEdgeEntry.getCosts().getCols()) &&
147145 "Matrix dimensions do not match cost vector dimensions.");
148146
149147 // Create links between nodes and edges.
681681 bool PBQPRegAlloc::mapPBQPToRegAlloc(const PBQP::Solution &solution) {
682682
683683 static unsigned round = 0;
684 (void) round;
684685
685686 // Set to true if we have any spills
686687 bool anotherRoundNeeded = false;