projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc662b
)
Simplify code, eliminating the need for the X86 isVoid target instr flag
author
Chris Lattner
<sabre@nondot.org>
Sun, 3 Aug 2003 21:51:45 +0000
(21:51 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 3 Aug 2003 21:51:45 +0000
(21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7534
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineInstr.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineInstr.cpp
b/lib/CodeGen/MachineInstr.cpp
index f53e8dcb7de7a245a4ad97dca21761513d836efc..d51c8071f76aac2c58403db88845816aa55dc1d7 100644
(file)
--- a/
lib/CodeGen/MachineInstr.cpp
+++ b/
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);
}