forked from OSchip/llvm-project
Ignore debug values when performing MachineVerifier liveness checks. Fixes
PR8822. llvm-svn: 122207
This commit is contained in:
parent
1064992c84
commit
1b67d6c565
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue