[MachineInstrBundle] Actually set the PartialDeadDef flag only when the register

is defined!

The users were checking the proper thing (Defined + PartialDeadDef), but the
information may have been wrong for other use cases, so fix that.

llvm-svn: 267641
This commit is contained in:
Quentin Colombet 2016-04-27 00:16:29 +00:00
parent 60976ed7c0
commit ddad5aa152
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ MachineOperandIteratorBase::analyzePhysReg(unsigned Reg,
if (AllDefsDead) {
if (PRI.FullyDefined || PRI.Clobbered)
PRI.DeadDef = true;
else
else if (PRI.Defined)
PRI.PartialDeadDef = true;
}