mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
a0fd0d5b27
commit
8ec88ba588
@ -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
Block a user