mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 00:27:31 +00:00
Re-disable kill flags, as there is more trouble.
llvm-svn: 102826
This commit is contained in:
parent
66d1a6ad69
commit
fb5d6a5d70
@ -296,6 +296,7 @@ InstrEmitter::AddRegisterOperand(MachineInstr *MI, SDValue Op,
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
// If this value has only one use, that use is a kill. This is a
|
||||
// conservative approximation. Tied operands are never killed, so we need
|
||||
// to check that. And that means we need to determine the index of the
|
||||
@ -306,6 +307,9 @@ InstrEmitter::AddRegisterOperand(MachineInstr *MI, SDValue Op,
|
||||
--Idx;
|
||||
bool isTied = MI->getDesc().getOperandConstraint(Idx, TOI::TIED_TO) != -1;
|
||||
bool isKill = Op.hasOneUse() && !isTied && !IsDebug;
|
||||
#else
|
||||
bool isKill = false;
|
||||
#endif
|
||||
|
||||
MI->addOperand(MachineOperand::CreateReg(VReg, isOptDef,
|
||||
false/*isImp*/, isKill,
|
||||
|
Loading…
Reference in New Issue
Block a user