mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Add an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
48ef398ebd
commit
0badfea274
@ -76,10 +76,12 @@ void RegScavenger::forward() {
|
||||
const MachineOperand &MO = MI->getOperand(i);
|
||||
if (!MO.isReg() || !MO.isDef())
|
||||
continue;
|
||||
// Skip two-address destination operand.
|
||||
if (TID->findTiedToSrcOperand(i) != -1)
|
||||
continue;
|
||||
unsigned Reg = MO.getReg();
|
||||
// Skip two-address destination operand.
|
||||
if (TID->findTiedToSrcOperand(i) != -1) {
|
||||
assert(isUsed(Reg));
|
||||
continue;
|
||||
}
|
||||
assert(isUnused(Reg) || isReserved(Reg));
|
||||
if (!MO.isDead())
|
||||
setUsed(Reg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user