summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-28 02:32:57 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-28 02:32:57 +0000
commit5cc91b261199d836b3d5e22cd9724abcc6c7a984 (patch)
tree43e2af21d8c5e5b4008f457242b5b70a5381b754 /llvm/lib/CodeGen/SplitKit.cpp
parenta6664cdbf06d3eef7991264db88aea41dd25e1f2 (diff)
downloadbcm5719-llvm-5cc91b261199d836b3d5e22cd9724abcc6c7a984.tar.gz
bcm5719-llvm-5cc91b261199d836b3d5e22cd9724abcc6c7a984.zip
Add SplitAnalysis::getNumLiveBlocks().
It is important that this function returns the same number of live blocks as countLiveBlocks(CurLI) because live range splitting uses the number of live blocks to ensure it is making progress. This is in preparation of supporting duplicate UseBlock entries for basic blocks that have a virtual register live-in and live-out, but not live-though. llvm-svn: 132244
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r--llvm/lib/CodeGen/SplitKit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp
index 55ae97c792a..53141b54c9f 100644
--- a/llvm/lib/CodeGen/SplitKit.cpp
+++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -224,6 +224,8 @@ bool SplitAnalysis::calcLiveBlockInfo() {
else
MFI = LIS.getMBBFromIndex(LVI->start);
}
+
+ assert(getNumLiveBlocks() == countLiveBlocks(CurLI) && "Bad block count");
return true;
}
OpenPOWER on IntegriCloud