diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-04-19 21:40:57 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-04-19 21:40:57 +0000 |
commit | e17c3fde6b1da52674b6f7406922de9371a4fefd (patch) | |
tree | e4c73c0a304cc48d0a12a1a422c3ee657b48ccac /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | dbeefaa86a2162aace0edc3d4b43a713ca2b103e (diff) | |
download | bcm5719-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.cpp | 3 |
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? |