diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-17 22:14:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-17 22:14:08 +0000 |
commit | 570f55de8d9f53a0d8a5dc6dcbb6aaba46b1b6db (patch) | |
tree | a853335d1520b02f41bfa5c8927ed6c36b1dc5d0 /lib/CodeGen/MachineInstr.cpp | |
parent | 0692536b71ad617cd2182a42801da8132940cdb6 (diff) | |
download | external_llvm-570f55de8d9f53a0d8a5dc6dcbb6aaba46b1b6db.zip external_llvm-570f55de8d9f53a0d8a5dc6dcbb6aaba46b1b6db.tar.gz external_llvm-570f55de8d9f53a0d8a5dc6dcbb6aaba46b1b6db.tar.bz2 |
Remove only uses of markDef/markDefAndUse methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 28fbd2d..91ee512 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -98,12 +98,13 @@ MachineInstr::SetMachineOperandVal(unsigned i, operands[i].opType = opType; operands[i].value = V; operands[i].regNum = -1; - operands[i].flags = 0; - if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i) - operands[i].markDef(); if (isDefAndUse) - operands[i].markDefAndUse(); + operands[i].flags = MachineOperand::DEFUSEFLAG; + else if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i) + operands[i].flags = MachineOperand::DEFFLAG; + else + operands[i].flags = 0; } void @@ -131,10 +132,12 @@ MachineInstr::SetMachineOperandReg(unsigned i, operands[i].opType = MachineOperand::MO_MachineRegister; operands[i].value = NULL; operands[i].regNum = regNum; - operands[i].flags = 0; if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i) - operands[i].markDef(); + operands[i].flags = MachineOperand::DEFFLAG; + else + operands[i].flags = 0; + insertUsedReg(regNum); } |