diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-08-13 16:26:28 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-08-13 16:26:28 +0000 |
commit | 6dec5fe04209be62dfc6c08f6d4b7a363a020f14 (patch) | |
tree | cd1c06a9ab4a888ea7979b77a5dba3a92eae52a7 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 20429a47e5ee573b1907f495f5df738e9263fd80 (diff) | |
download | bcm5719-llvm-6dec5fe04209be62dfc6c08f6d4b7a363a020f14.tar.gz bcm5719-llvm-6dec5fe04209be62dfc6c08f6d4b7a363a020f14.zip |
Changed SetMachineOpernad calls in Set3OperandsFromInstr so that the
result position is a def (i.e., added true to the end of call) -- Ruchira
llvm-svn: 356
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 298a9cd6143..2e3f73fbaa1 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -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); } |