This should unbreak llvm-x86_64-linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156778
91177308-0d34-0410-b5e6-
96231b3b80d8
// Return true if the operand kills its register.
bool RAFast::setPhysReg(MachineInstr *MI, unsigned OpNum, unsigned PhysReg) {
MachineOperand &MO = MI->getOperand(OpNum);
// Return true if the operand kills its register.
bool RAFast::setPhysReg(MachineInstr *MI, unsigned OpNum, unsigned PhysReg) {
MachineOperand &MO = MI->getOperand(OpNum);
+ bool Dead = MO.isDead();
if (!MO.getSubReg()) {
MO.setReg(PhysReg);
if (!MO.getSubReg()) {
MO.setReg(PhysReg);
- return MO.isKill() || MO.isDead();
+ return MO.isKill() || Dead;
}
// Handle subregister index.
}
// Handle subregister index.
if (MO.isDef() && MO.isUndef())
MI->addRegisterDefined(PhysReg, TRI);
if (MO.isDef() && MO.isUndef())
MI->addRegisterDefined(PhysReg, TRI);
}
// Handle special instruction operand like early clobbers and tied ops when
}
// Handle special instruction operand like early clobbers and tied ops when