Ignore debug values when performing MachineVerifier liveness checks. Fixes

PR8822.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Cameron Zwarich 2010-12-20 00:08:10 +00:00
parent a0fd0d5b27
commit 8ec88ba588

View File

@ -587,7 +587,9 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
return;
// Check Live Variables.
if (MO->isUndef()) {
if (MI->isDebugValue()) {
// Liveness checks are not valid for debug values.
} else if (MO->isUndef()) {
// An <undef> doesn't refer to any register, so just skip it.
} else if (MO->isUse()) {
regsLiveInButUnused.erase(Reg);