Fix some -Asserts unused variable warnings.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 8 Aug 2009 00:40:46 +0000 (00:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 8 Aug 2009 00:40:46 +0000 (00:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78447 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PBQP/GraphBase.h
lib/CodeGen/RegAllocPBQP.cpp

index f04a1639f64c23a3bcccaa25917e376591f8d9cb..cc3e017adda13b51c5f112b6f668bb1a28dc5b2f 100644 (file)
@@ -138,13 +138,11 @@ protected:
     NodeEntry &node1Entry = getNodeEntry(newEdgeEntry.getNode1Itr()),
               &node2Entry = getNodeEntry(newEdgeEntry.getNode2Itr());
 
-    unsigned n1Len = node1Entry.getCosts().getLength(),
-             n2Len = node2Entry.getCosts().getLength(),
-             mRows = newEdgeEntry.getCosts().getRows(),
-             mCols = newEdgeEntry.getCosts().getCols();
-
     // Sanity check on matrix dimensions.
-    assert((n1Len == mRows) && (n2Len == mCols) &&
+    assert((node1Entry.getCosts().getLength() == 
+            newEdgeEntry.getCosts().getRows()) && 
+           (node2Entry.getCosts().getLength() == 
+            newEdgeEntry.getCosts().getCols()) &&
         "Matrix dimensions do not match cost vector dimensions.");
 
     // Create links between nodes and edges.
index 63c7d3d2ddd6a626729471e87700e0b7789d7876..e0aea9847c07aeeccc22a8f9db0130b70950471f 100644 (file)
@@ -682,6 +682,7 @@ void PBQPRegAlloc::addStackInterval(const LiveInterval *spilled,
 bool PBQPRegAlloc::mapPBQPToRegAlloc(const PBQP::Solution &solution) {
 
   static unsigned round = 0;
+  (void) round;
 
   // Set to true if we have any spills
   bool anotherRoundNeeded = false;