summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-08 00:40:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-08 00:40:46 +0000
commit4bfb4c80e041330fd91bb3c40a5ec5db417a8c12 (patch)
tree7f2efb81619776d1744eeb4018dcdb3b4a7f099e /llvm/lib
parent3becda83ef0077edf24cd7e1f71941f2cd94ed49 (diff)
downloadbcm5719-llvm-4bfb4c80e041330fd91bb3c40a5ec5db417a8c12.tar.gz
bcm5719-llvm-4bfb4c80e041330fd91bb3c40a5ec5db417a8c12.zip
Fix some -Asserts unused variable warnings.
llvm-svn: 78447
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/PBQP/GraphBase.h10
-rw-r--r--llvm/lib/CodeGen/RegAllocPBQP.cpp1
2 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/PBQP/GraphBase.h b/llvm/lib/CodeGen/PBQP/GraphBase.h
index f04a1639f64..cc3e017adda 100644
--- a/llvm/lib/CodeGen/PBQP/GraphBase.h
+++ b/llvm/lib/CodeGen/PBQP/GraphBase.h
@@ -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.
diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp
index 63c7d3d2ddd..e0aea9847c0 100644
--- a/llvm/lib/CodeGen/RegAllocPBQP.cpp
+++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp
@@ -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;
OpenPOWER on IntegriCloud