1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[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 e5b08e124c
commit 1c43af45df

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;
}