From: Quentin Colombet Date: Wed, 27 Apr 2016 00:16:29 +0000 (+0000) Subject: [MachineInstrBundle] Actually set the PartialDeadDef flag only when the register X-Git-Tag: llvmorg-3.9.0-rc1~7843 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ddad5aa15283b625ecc8fdd1934c3c809a7b107f;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/llvm/lib/CodeGen/MachineInstrBundle.cpp b/llvm/lib/CodeGen/MachineInstrBundle.cpp index 725237b..985a086 100644 --- a/llvm/lib/CodeGen/MachineInstrBundle.cpp +++ b/llvm/lib/CodeGen/MachineInstrBundle.cpp @@ -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; }