mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Changed SetMachineOpernad calls in Set3OperandsFromInstr so that the
result position is a def (i.e., added true to the end of call) -- Ruchira git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81cb20775a
commit
b0cdcda42a
@ -249,9 +249,9 @@ Set3OperandsFromInstrJUNK(MachineInstr* minstr,
|
|||||||
|
|
||||||
// If operand 3 (result) can be discarded, use a dead register if one exists
|
// If operand 3 (result) can be discarded, use a dead register if one exists
|
||||||
if (canDiscardResult && target.zeroRegNum >= 0)
|
if (canDiscardResult && target.zeroRegNum >= 0)
|
||||||
minstr->SetMachineOperand(resultPosition, target.zeroRegNum);
|
minstr->SetMachineOperand(resultPosition, target.zeroRegNum, true);
|
||||||
else
|
else
|
||||||
minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue());
|
minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue(), true);
|
||||||
|
|
||||||
return returnFlags;
|
return returnFlags;
|
||||||
}
|
}
|
||||||
@ -281,9 +281,9 @@ Set3OperandsFromInstr(MachineInstr* minstr,
|
|||||||
|
|
||||||
// result operand: if it can be discarded, use a dead register if one exists
|
// result operand: if it can be discarded, use a dead register if one exists
|
||||||
if (canDiscardResult && target.zeroRegNum >= 0)
|
if (canDiscardResult && target.zeroRegNum >= 0)
|
||||||
minstr->SetMachineOperand(resultPosition, target.zeroRegNum);
|
minstr->SetMachineOperand(resultPosition, target.zeroRegNum, true);
|
||||||
else
|
else
|
||||||
minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue());
|
minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user