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 5bc1c4bd4e
commit 6096d5a279
1 changed files with 3 additions and 0 deletions

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())