[llvm-commits] [llvm] r78447 - in /llvm/trunk/lib/CodeGen: PBQP/GraphBase.h RegAllocPBQP.cpp

Daniel Dunbar daniel at zuster.org
Fri Aug 7 17:40:47 PDT 2009


Author: ddunbar
Date: Fri Aug  7 19:40:46 2009
New Revision: 78447

URL: http://llvm.org/viewvc/llvm-project?rev=78447&view=rev
Log:
Fix some -Asserts unused variable warnings.

Modified:
    llvm/trunk/lib/CodeGen/PBQP/GraphBase.h
    llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp

Modified: llvm/trunk/lib/CodeGen/PBQP/GraphBase.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PBQP/GraphBase.h?rev=78447&r1=78446&r2=78447&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/PBQP/GraphBase.h (original)
+++ llvm/trunk/lib/CodeGen/PBQP/GraphBase.h Fri Aug  7 19:40:46 2009
@@ -138,13 +138,11 @@
     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.

Modified: llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp?rev=78447&r1=78446&r2=78447&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp Fri Aug  7 19:40:46 2009
@@ -682,6 +682,7 @@
 bool PBQPRegAlloc::mapPBQPToRegAlloc(const PBQP::Solution &solution) {
 
   static unsigned round = 0;
+  (void) round;
 
   // Set to true if we have any spills
   bool anotherRoundNeeded = false;





More information about the llvm-commits mailing list