forked from OSchip/llvm-project
[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:
parent
60976ed7c0
commit
ddad5aa152
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue