diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-03 21:51:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-03 21:51:45 +0000 |
commit | 41a894de771850fe653f79c583951f42d0f9f776 (patch) | |
tree | 5cbf005726922e520693745924fda5c1b6682520 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 74e4e9b44fd446e1dc411d151be815ca4a264044 (diff) | |
download | bcm5719-llvm-41a894de771850fe653f79c583951f42d0f9f776.tar.gz bcm5719-llvm-41a894de771850fe653f79c583951f42d0f9f776.zip |
Simplify code, eliminating the need for the X86 isVoid target instr flag
llvm-svn: 7534
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index f53e8dcb7de..d51c8071f76 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -126,10 +126,11 @@ MachineInstr::SetMachineOperandReg(unsigned i, operands[i].value = NULL; operands[i].regNum = regNum; - if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i) + if (isdef || TargetInstrDescriptors[opCode].resultPos == (int)i) { + assert(operands[i].flags == MachineOperand::DEFONLYFLAG && + "Shouldn't be changing a register type once set!"); operands[i].flags = MachineOperand::DEFONLYFLAG; - else - operands[i].flags = 0; + } insertUsedReg(regNum); } |