mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
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:
parent
cb048097c9
commit
610234d5c9
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user