summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-19 21:40:57 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-19 21:40:57 +0000
commite17c3fde6b1da52674b6f7406922de9371a4fefd (patch)
treee4c73c0a304cc48d0a12a1a422c3ee657b48ccac /llvm/lib/CodeGen/MachineVerifier.cpp
parentdbeefaa86a2162aace0edc3d4b43a713ca2b103e (diff)
downloadbcm5719-llvm-e17c3fde6b1da52674b6f7406922de9371a4fefd.tar.gz
bcm5719-llvm-e17c3fde6b1da52674b6f7406922de9371a4fefd.zip
Add an MRI::verifyUseLists() function.
This checks the sanity of the register use lists in the MI intermediate representation. llvm-svn: 179895
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 4b1230029a7..037043f6419 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -472,6 +472,9 @@ void MachineVerifier::visitMachineFunctionBefore() {
if (MInfo.Succs.size() != I->succ_size())
report("MBB has duplicate entries in its successor list.", I);
}
+
+ // Check that the register use lists are sane.
+ MRI->verifyUseLists();
}
// Does iterator point to a and b as the first two elements?
OpenPOWER on IntegriCloud