mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
Verify that phi instructions refer to MBBs in the CFG.
The machine code verifier no longer tolerates phi instructions with noop operands. All MBBs on a phi instruction must be in the CFG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4fbd14e80e
commit
a5ba07c3d1
@ -592,13 +592,14 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Can PHI instrs refer to MBBs not in the CFG? X86 and ARM do.
|
|
||||||
// case MachineOperand::MO_MachineBasicBlock:
|
case MachineOperand::MO_MachineBasicBlock:
|
||||||
// if (MI->getOpcode() == TargetInstrInfo::PHI) {
|
if (MI->getOpcode() == TargetInstrInfo::PHI) {
|
||||||
// if (!MO->getMBB()->isSuccessor(MI->getParent()))
|
if (!MO->getMBB()->isSuccessor(MI->getParent()))
|
||||||
// report("PHI operand is not in the CFG", MO, MONum);
|
report("PHI operand is not in the CFG", MO, MONum);
|
||||||
// }
|
}
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user