1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Debug info shouldn't affect kills.

llvm-svn: 99637
This commit is contained in:
Dale Johannesen 2010-03-26 19:21:26 +00:00
parent 341502ebd8
commit 5c20ece13a

View File

@ -572,6 +572,9 @@ static bool InvalidateRegDef(MachineBasicBlock::iterator I,
static void UpdateKills(MachineInstr &MI, const TargetRegisterInfo* TRI,
BitVector &RegKills,
std::vector<MachineOperand*> &KillOps) {
// These do not affect kill info at all.
if (MI.isDebugValue())
return;
for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
MachineOperand &MO = MI.getOperand(i);
if (!MO.isReg() || !MO.isUse() || MO.isUndef())