From ddad5aa15283b625ecc8fdd1934c3c809a7b107f Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Wed, 27 Apr 2016 00:16:29 +0000 Subject: [PATCH] [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 --- llvm/lib/CodeGen/MachineInstrBundle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4