Do not insert physical regsiters into the regsUsed set

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-08-05 21:55:20 +00:00
parent cb048097c9
commit 610234d5c9
2 changed files with 0 additions and 5 deletions

View File

@ -530,7 +530,6 @@ public:
"Trying to add an operand to a machine instr that is already done!");
operands.push_back(MachineOperand(reg, MachineOperand::MO_MachineRegister,
isDef ? MOTy::Def : MOTy::Use));
insertUsedReg(reg);
}
/// addMachineRegOperand - Add a virtual register operand to this MachineInstr
@ -540,7 +539,6 @@ public:
"Trying to add an operand to a machine instr that is already done!");
operands.push_back(MachineOperand(reg, MachineOperand::MO_MachineRegister,
UTy));
insertUsedReg(reg);
}
/// addZeroExtImmOperand - Add a zero extended constant argument to the

View File

@ -111,7 +111,6 @@ void MachineInstr::SetMachineOperandReg(unsigned i, int regNum) {
operands[i].opType = MachineOperand::MO_MachineRegister;
operands[i].value = NULL;
operands[i].regNum = regNum;
insertUsedReg(regNum);
}
void
@ -119,14 +118,12 @@ MachineInstr::SetRegForOperand(unsigned i, int regNum)
{
assert(i < getNumOperands()); // must be explicit op
operands[i].setRegForValue(regNum);
insertUsedReg(regNum);
}
void
MachineInstr::SetRegForImplicitRef(unsigned i, int regNum)
{
getImplicitOp(i).setRegForValue(regNum);
insertUsedReg(regNum);
}