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 (AllDefsDead) {
|
||||||
if (PRI.FullyDefined || PRI.Clobbered)
|
if (PRI.FullyDefined || PRI.Clobbered)
|
||||||
PRI.DeadDef = true;
|
PRI.DeadDef = true;
|
||||||
else
|
else if (PRI.Defined)
|
||||||
PRI.PartialDeadDef = true;
|
PRI.PartialDeadDef = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue