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:
Ruchira Sasanka 2001-08-13 16:26:28 +00:00
parent 81cb20775a
commit b0cdcda42a

View File

@ -249,9 +249,9 @@ Set3OperandsFromInstrJUNK(MachineInstr* minstr,
// If operand 3 (result) can be discarded, use a dead register if one exists
if (canDiscardResult && target.zeroRegNum >= 0)
minstr->SetMachineOperand(resultPosition, target.zeroRegNum);
minstr->SetMachineOperand(resultPosition, target.zeroRegNum, true);
else
minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue());
minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue(), true);
return returnFlags;
}
@ -281,9 +281,9 @@ Set3OperandsFromInstr(MachineInstr* minstr,
// result operand: if it can be discarded, use a dead register if one exists
if (canDiscardResult && target.zeroRegNum >= 0)
minstr->SetMachineOperand(resultPosition, target.zeroRegNum);
minstr->SetMachineOperand(resultPosition, target.zeroRegNum, true);
else
minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue());
minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue(), true);
}